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