martinmoene / value-ptr-lite

value-ptr-lite - A C++ smart-pointer with value semantics for C++98, C++11 and later in a single-file header-only library
Boost Software License 1.0
48 stars 14 forks source link

Nullptr constructor should be constexpr #9

Closed redpandamonium closed 3 years ago

redpandamonium commented 3 years ago

Based on the semantics of std::unique_ptr, the value_ptr() and value_ptr(nullptr_t) constructors should be constexpr. If constexpr is available (C++ >= 11) it should be added to those constructors so empty value_ptr objects can be created in constexpr contexts.