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

Base class for the conversion. More...

Public Member Functions

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

Detailed Description

template<typename To, typename From, typename ToEnable, typename FromEnable>
struct test_throw::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 76 of file test_lexical_cast.cpp.

Member Function Documentation

◆ operator()()

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

Definition at line 145 of file test_lexical_cast.cpp.


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