fork download
  1. #include <iostream>
  2. #include <type_traits>
  3. using namespace std;
  4.  
  5. struct foo {
  6. char a;
  7. foo() { a = 127; }
  8. };
  9.  
  10. int main() {
  11. cout << is_trivial<foo>::value << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 4444KB
stdin
Standard input is empty
stdout
0