OS Manuals

cereal_traits_detail_NoConvertConstRef(3)

cereal::traits::detail::NoConvertConstRef< Source > - A struct that prevents implicit conversion.

cereal::traits::detail::NoConvertConstRef< Source >(3) Library Functions Manual cereal::traits::detail::NoConvertConstRef< Source >(3)

cereal::traits::detail::NoConvertConstRef< Source > - A struct that prevents implicit conversion.

#include </home/build/include/cereal/details/traits.hpp>

Inherits cereal::traits::detail::NoConvertBase.


using type = Source
Used to get underlying type easily.


template<class Dest, class = typename std::enable_if<std::is_same<Source, Dest>::value>::type> operator Dest ()=delete
template<class Dest, class = typename std::enable_if<std::is_same<Source, Dest>::value>::type> operator Dest const & ()
only allow conversion if the types are the same and we are converting into a const reference

struct cereal::traits::detail::NoConvertConstRef< Source >"A struct that prevents implicit conversion.

Any type instantiated with this struct will be unable to implicitly convert to another type. Is designed to only allow conversion to Source const &.

Template Parameters

Source the type of the original source

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 20:39:03 cereal

cereal 1.3.2-r8 · enterprise-packages · ingested 2026-10-27