diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-23 23:33:53 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-23 23:33:53 +0300 |
commit | b42878012cc20d1031bdf6765912d77866b26ad6 (patch) | |
tree | 5a119eedf6d232fb114fe3ce857d10b62459852f /intern/cycles | |
parent | 398baef6c830fad7ec2ffb75801713775c348f7c (diff) |
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.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/util/util_debug.cpp | 2 | ||||
-rw-r--r-- | intern/cycles/util/util_debug.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/intern/cycles/util/util_debug.cpp b/intern/cycles/util/util_debug.cpp index 0f3862ad869..448c6223765 100644 --- a/intern/cycles/util/util_debug.cpp +++ b/intern/cycles/util/util_debug.cpp @@ -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" diff --git a/intern/cycles/util/util_debug.h b/intern/cycles/util/util_debug.h index 723d4a0a1ec..6ec5188049d 100644 --- a/intern/cycles/util/util_debug.h +++ b/intern/cycles/util/util_debug.h @@ -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 |