v.0.1.1 release notes:
- updated core policy checking mechanism.
now tracked_ptr also supports checking on destructor calling - added new accessing policy: must_destruct_by_same_thread_constructed
the new policy checks if created source has destructed on the same thread that its createdauto test_ptr = make_tracked_ptr<TestingClass, exceptions::throw_on_exception<exception>, must_destruct_by_same_thread_constructed>(); ASSERT_NO_THROW(test_ptr->doubled(1)); std::thread th([&] { ASSERT_THROW(test_ptr.reset(), test_exception); }); th.join();