morinim / vita

Vita - Genetic Programming Framework
Mozilla Public License 2.0
35 stars 6 forks source link

Replace vita::any with std::any #9

Closed morinim closed 4 years ago

morinim commented 7 years ago

The typical implementation should be performance equivalent.

Check small objects optimization:

Implementations are encouraged to avoid dynamic allocations for small objects, but such an optimization may only be applied to types that for which std::is_nothrow_move_constructible returns true.

(from http://en.cppreference.com/w/cpp/utility/any)