cereal::traits::detail::NoConvertConstRef&lt; Source &gt;(3) Library Functions Manual cereal::traits::detail::NoConvertConstRef&lt; Source &gt;(3)

# [NAME](#NAME)

cereal::traits::detail::NoConvertConstRef&lt; Source &gt; - A struct that prevents implicit conversion.

# [SYNOPSIS](#SYNOPSIS)

#include &lt;/home/build/include/cereal/details/traits.hpp&gt;

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

## [Public Types](#Public_Types)

using **type** = Source  
Used to get underlying type easily.

## [Public Member Functions](#Public_Member_Functions)

template&lt;class Dest, class = typename std::enable\_if&lt;std::is\_same&lt;Source, Dest&gt;::value&gt;::type&gt; **operator Dest** ()=delete  
template&lt;class Dest, class = typename std::enable\_if&lt;std::is\_same&lt;Source, Dest&gt;::value&gt;::type&gt; **operator Dest const &** ()  
only allow conversion if the types are the same and we are converting into a const reference

# [Detailed Description](#Detailed_Description)

## [template&lt;class Source&gt;](#template_class_Source_)

struct cereal::traits::detail::NoConvertConstRef&lt; Source &gt;"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

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 20:39:03 cereal

---

Document: cereal_traits_detail_NoConvertConstRef(3) from cereal 1.3.2-r8 (Chainguard OS)
Source: https://github.com/USCiLab/cereal
