Cycles: Make Clang 3.6 happy with const debug flags reference

For some reason it did not like the explicit const qualifier for a
custom type.
This commit is contained in:
Sergey Sharybin 2016-01-24 01:33:53 +05:00
parent 398baef6c8
commit b42878012c
2 changed files with 3 additions and 2 deletions

@ -114,7 +114,7 @@ void DebugFlags::reset()
}
std::ostream& operator <<(std::ostream &os,
const DebugFlagsRef debug_flags)
DebugFlagsConstRef debug_flags)
{
os << "CPU flags:\n"
<< " AVX2 : " << string_from_bool(debug_flags.cpu.avx2) << "\n"

@ -125,13 +125,14 @@ private:
};
typedef DebugFlags& DebugFlagsRef;
typedef const DebugFlags& DebugFlagsConstRef;
inline DebugFlags& DebugFlags() {
return DebugFlags::get();
}
std::ostream& operator <<(std::ostream &os,
const DebugFlagsRef debug_flags);
DebugFlagsConstRef debug_flags);
CCL_NAMESPACE_END