Skip to content

Release v0.1.1

Latest
Compare
Choose a tag to compare
@nixiz nixiz released this 01 Jun 21:33
d5f8983

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 created
    auto 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();