fix macro usage
This commit is contained in:
parent
e7f13d05b8
commit
e7503fc7a2
@ -74,7 +74,7 @@ struct ConvertToIntImpl<T, true> {
|
|||||||
// Write the content of w to os.
|
// Write the content of w to os.
|
||||||
void write(std::ostream &os, Writer &w);
|
void write(std::ostream &os, Writer &w);
|
||||||
|
|
||||||
#ifdef FMT_HAS_DECLTYPE_INCOMPLETE_RETURN_TYPES
|
#if FMT_HAS_DECLTYPE_INCOMPLETE_RETURN_TYPES
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class is_streamable {
|
class is_streamable {
|
||||||
template<typename U>
|
template<typename U>
|
||||||
@ -125,7 +125,7 @@ typename std::enable_if<
|
|||||||
BasicWriter<Char>&
|
BasicWriter<Char>&
|
||||||
>::type
|
>::type
|
||||||
operator<<(BasicWriter<Char> &writer, const T &value) {
|
operator<<(BasicWriter<Char> &writer, const T &value) {
|
||||||
#ifdef FMT_HAS_DECLTYPE_INCOMPLETE_RETURN_TYPES
|
#if FMT_HAS_DECLTYPE_INCOMPLETE_RETURN_TYPES
|
||||||
static_assert(internal::is_streamable<T>::value, "T must be Streamable");
|
static_assert(internal::is_streamable<T>::value, "T must be Streamable");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user