The Battle for Wesnoth  1.19.5+dev
Public Member Functions | List of all members
implementation::lexical_caster< To, From, ToEnable, FromEnable > Struct Template Reference

Base class for the conversion. More...

#include <lexical_cast.hpp>

Public Member Functions

To operator() (From value, utils::optional< To > fallback) const
 

Detailed Description

template<typename To, typename From, typename ToEnable, typename FromEnable>
struct implementation::lexical_caster< To, From, ToEnable, FromEnable >

Base class for the conversion.

Since functions can't be partially specialized we use a class, which can be partially specialized for the conversion.

Template Parameters
ToThe type to convert to.
FromThe type to convert from.
ToEnableFilter to enable the To type.
FromEnableFilter to enable the From type.

Definition at line 136 of file lexical_cast.hpp.

Member Function Documentation

◆ operator()()

template<typename To , typename From , typename ToEnable , typename FromEnable >
To implementation::lexical_caster< To, From, ToEnable, FromEnable >::operator() ( From  value,
utils::optional< To >  fallback 
) const
inline

Definition at line 138 of file lexical_cast.hpp.

References DEBUG_THROW.


The documentation for this struct was generated from the following file: