fork download
  1. #include <iostream>
  2. #include <type_traits>
  3. using namespace std;
  4.  
  5. template <class T>
  6. struct Foo
  7. {
  8. Foo()
  9. { }
  10.  
  11. explicit Foo(T* obj) : m_data(obj)
  12. { }
  13.  
  14. T* m_data;
  15. };
  16.  
  17. int main()
  18. {
  19. cout << boolalpha << std::is_pod<Foo<int>>::value << endl;
  20. }
  21.  
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
false