Struct optional_storage_policy_for< T && >

Synopsis

#include <include/type_safe/optional.hpp>

template <typename T>
struct optional_storage_policy_for<T&&>

Description

Specialization of [ts::optional_storage_policy_for]() for rvalue references.

They are not supported. \module optional

Source

Lines 141-145 in include/type_safe/optional.hpp.

template <typename T>
struct optional_storage_policy_for<T&&>
{
    static_assert(sizeof(T) != sizeof(T), "no optional for rvalue references supported");
};





Add Discussion as Guest

Log in