The Battle for Wesnoth  1.15.1+dev
Public Member Functions | List of all members
test_throw::implementation::lexical_caster< To, std::string, std::enable_if_t< std::is_integral< To >::value &&std::is_signed< To >::value &&!std::is_same< To, long long >::value > > Struct Template Reference

Specialized conversion class. More...

Public Member Functions

To operator() (const std::string &value, boost::optional< To > fallback) const
 

Detailed Description

template<class To>
struct test_throw::implementation::lexical_caster< To, std::string, std::enable_if_t< std::is_integral< To >::value &&std::is_signed< To >::value &&!std::is_same< To, long long >::value > >

Specialized conversion class.

Specialized for returning a signed type from a std::string.

Definition at line 275 of file test_lexical_cast.cpp.

Member Function Documentation

◆ operator()()

template<class To >
To test_throw::implementation::lexical_caster< To, std::string, std::enable_if_t< std::is_integral< To >::value &&std::is_signed< To >::value &&!std::is_same< To, long long >::value > >::operator() ( const std::string &  value,
boost::optional< To >  fallback 
) const
inline

Definition at line 281 of file test_lexical_cast.cpp.


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