Language
C++
Compiler
gcc HEAD 11.0.0 20200923 (experimental)
Options
Warnings
Boost 1.73.0
C++2a
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=c++2a
Exit Code:
1
Author
anonymous
over 4 years ago
C++
gcc HEAD 11.0.0 20200923 (experimental)
Author
anonymous
over 4 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=c++2a
/tmp/ccYrs62b.o: In function `MyClass<std::less<int> >::operator<(MyClass<std::less<int> > const&)':
prog.cc:(.text._ZN7MyClassISt4lessIiEEltERKS2_[_ZN7MyClassISt4lessIiEEltERKS2_]+0x1c): undefined reference to `MyClass<std::less<int> >::comp'
collect2: error: ld returned 1 exit status