The Battle for Wesnoth  1.17.0-dev
Public Member Functions | List of all members
implementation::lexical_caster< bool, From, void, std::enable_if_t< std::is_same_v< From, const char * >||std::is_same_v< From, char * > > > Struct Template Reference

Specialized conversion class. More...

#include <lexical_cast.hpp>

Public Member Functions

bool operator() (From value, std::optional< bool >) const
 

Detailed Description

template<class From>
struct implementation::lexical_caster< bool, From, void, std::enable_if_t< std::is_same_v< From, const char * >||std::is_same_v< From, char * > > >

Specialized conversion class.

Specialized for returning a bool from a (const) char*.

Note
is specialized to silence C4804 from MSVC.

Definition at line 507 of file lexical_cast.hpp.

Member Function Documentation

◆ operator()()

template<class From >
bool implementation::lexical_caster< bool, From, void, std::enable_if_t< std::is_same_v< From, const char * >||std::is_same_v< From, char * > > >::operator() ( From  value,
std::optional< bool >   
) const
inline

Definition at line 514 of file lexical_cast.hpp.

References DEBUG_THROW, and lexical_cast().


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