fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <type_traits>
  4.  
  5. int main() {
  6.  
  7. std::cout << std::is_trivially_copyable<std::string>::value;
  8.  
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1
2
10
42
11
compilation info
prog.cpp: In function 'int main()':
prog.cpp:7:16: error: 'is_trivially_copyable' is not a member of 'std'
prog.cpp:7:54: error: expected primary-expression before '>' token
prog.cpp:7:55: error: '::value' has not been declared
stdout
Standard output is empty