Refactored out the horrible static var in CoreTiming

This commit is contained in:
Hamish Milne 2020-03-28 15:47:36 +00:00
parent 917d651a3c
commit 4aab38f133
6 changed files with 15 additions and 11 deletions

View file

@ -9,9 +9,13 @@ namespace Core {
template <class T>
T& Global();
// Declare explicit specialisation to prevent im
// Declare explicit specialisation to prevent automatic instantiation
class System;
template <>
System& Global();
class Timing;
template <>
Timing& Global();
} // namespace Core