#if __cplusplus >= 201103L #include "cpp11features.h" // for std::shared_ptr<> testing int TestSharedPtr::s_counter = 0; std::shared_ptr create_shared_ptr_instance() { return std::shared_ptr(new TestSharedPtr); } // for move ctors etc. int TestMoving1::s_move_counter = 0; int TestMoving2::s_move_counter = 0; #endif // c++11 and later