Closed daeisbae closed 4 months ago
invalid operand <<
MacOS Compiler Environment: Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
[ 3%] Building CXX object operator/CMakeFiles/operator.dir/operator.cpp.o In file included from /Users/daehyung/Desktop/Programming/AParser/operator/operator.cpp:1: /Users/daehyung/Desktop/Programming/AParser/operator/operator.hpp:58:9: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char[19]') out << "Operator( Value: \'" << op.value << "\' )"; ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/cstddef:125:3: note: candidate function template not viable: cannot convert argument of incomplete type 'std::ostream' (aka 'basic_ostream<char>') to 'byte' for 1st argument operator<< (byte __lhs, _Integer __shift) noexcept ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__memory/shared_ptr.h:1927:1: note: candidate template ignored: could not match 'const shared_ptr<_Yp>' against 'const char[19]' operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/string_view:947:1: note: candidate template ignored: could not match 'basic_string_view<_CharT, _Traits>' against 'const char *' operator<<(basic_ostream<_CharT, _Traits>& __os, ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__random/uniform_int_distribution.h:258:1: note: candidate template ignored: could not match 'const uniform_int_distribution<_IT>' against 'const char[19]' operator<<(basic_ostream<_CharT, _Traits>& __os, ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/string:4476:1: note: candidate template ignored: could not match 'const basic_string<_CharT, _Traits, _Allocator>' against 'const char[19]' operator<<(basic_ostream<_CharT, _Traits>& __os, ^ 1 error generated. make[2]: *** [operator/CMakeFiles/operator.dir/operator.cpp.o] Error 1 make[1]: *** [operator/CMakeFiles/operator.dir/all] Error 2 make: *** [all] Error 2
Changes
invalid operand <<
error) #44Environment
MacOS Compiler Environment:
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Error Information