Cannot compile on MacOS
Created by: jacquesqiao
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iostream:40: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/istream:163: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:1038:10: error: use of overloaded operator '<<' is ambiguous (with operand types 'visualdl::logging::LogStreamFatal' and 'const int') __os << __x; ~~~~ ^ ~~~ /Users/qiaolongfei/project/VisualDL/visualdl/logic/sdk.h:175:5: note: in instantiation of function template specialization 'std::__1::operator<<<visualdl::logging::LogStreamFatal, int>' requested here CHECK_GT(step_cycle, 0); ^ /Users/qiaolongfei/project/VisualDL/visualdl/utils/logging.h:112:26: note: expanded from macro 'CHECK_GT' #define CHECK_GT(v0, v1) CHECK_BINARY(v0, v1, >) ^ /Users/qiaolongfei/project/VisualDL/visualdl/utils/logging.h:116:51: note: expanded from macro 'CHECK_BINARY' if (!(v0 op v1)) LOG_FATAL << " Check failed: " << v0 << #op << v1 << " " ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:790:1: note: candidate function [with _Traits = std::__1::char_traits] operator<<(basic_ostream<char, _Traits>& __os, char __c) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:757:1: note: candidate function [with _CharT = char, _Traits = std::__1::char_traits] operator<<(basic_ostream<_CharT, _Traits>& __os, char __cn) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:797:1: note: candidate function [with _Traits = std::__1::char_traits] operator<<(basic_ostream<char, _Traits>& __os, signed char __c) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:804:1: note: candidate function [with _Traits = std::__1::char_traits] operator<<(basic_ostream<char, _Traits>& __os, unsigned char __c) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefaul