C++ Logo


Advanced search

Subject: [std-proposals] std::any for non-copyable types
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2020-05-28 08:41:58


Is there a proposal for std::any like type that does not require held types
to be copyable and has unique ownership of the held data?

Is there interest in such class?

We have an in house implementation that I find very useful for storing
structures that contain unique_ptr (Flatbuffers, recursive types) and even
non-movable types with mutexes.

STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups