cereal::detail::RegisterPolymorphicCaster&lt; Base, Derived &gt;(3) Library Functions Manual cereal::detail::RegisterPolymorphicCaster&lt; Base, Derived &gt;(3)

# [NAME](#NAME)

cereal::detail::RegisterPolymorphicCaster&lt; Base, Derived &gt; - Registers a polymorphic casting relation between a Base and Derived type.

# [SYNOPSIS](#SYNOPSIS)

#include &lt;/home/build/include/cereal/details/polymorphic\_impl.hpp&gt;

## [Static Public Member Functions](#Static_Public_Member_Functions)

static **PolymorphicCaster** const * **bind** (std::true\_type)  
static **PolymorphicCaster** const * **bind** (std::false\_type)  
static **PolymorphicCaster** const * **bind** ()  
Performs registration (binding) between Base and Derived.

# [Detailed Description](#Detailed_Description)

## [template&lt;class Base, class Derived&gt;](#template_class_Base,_class_Derived_)

struct cereal::detail::RegisterPolymorphicCaster&lt; Base, Derived &gt;"Registers a polymorphic casting relation between a Base and Derived type.

Forward declaration, see **polymorphic\_impl.hpp** for more information.

Registering a relation allows cereal to properly cast between the two types given runtime type information and void pointers.

Registration happens automatically via **cereal::base\_class** and **cereal::virtual\_base\_class** instantiations. For cases where neither is called, see the CEREAL\_REGISTER\_POLYMORPHIC\_RELATION macro

# [Member Function Documentation](#Member_Function_Documentation)

## [template&lt;class Base, class Derived&gt; **PolymorphicCaster** const * **cereal::detail::RegisterPolymorphicCaster**&lt; Base, Derived &gt;::bind () \[inline\], \[static\]](#template_class_Base,_class_Derived__)

Performs registration (binding) between Base and Derived. If the type is not polymorphic, nothing will happen

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 02:55:37 cereal

---

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