This commit is contained in:
Victor Zverovich
2018-03-04 11:25:40 -08:00
parent f1ede6380b
commit bb47109a78
3 changed files with 9 additions and 9 deletions

View File

@@ -262,6 +262,11 @@ typename Allocator::value_type *allocate(Allocator& alloc, std::size_t n) {
return alloc.allocate(n);
#endif
}
// A helper function to suppress bogus "conditional expression is constant"
// warnings.
template <typename T>
inline T const_check(T value) { return value; }
} // namespace internal
} // namespace fmt