A wrapper for bool to get the correct streaming ("yes"/"no"). More...
#include <config.hpp>
Public Member Functions | |
yes_no (bool value=false) | |
operator bool () const | |
const std::string & | str () const |
Private Attributes | |
bool | value_ |
A wrapper for bool to get the correct streaming ("yes"/"no").
Most visitors can simply treat this as bool.
Definition at line 243 of file config.hpp.
|
inlineexplicit |
Definition at line 247 of file config.hpp.
|
inline |
Definition at line 248 of file config.hpp.
References value_.
|
inline |
Definition at line 250 of file config.hpp.
References config::attribute_value::s_no, and config::attribute_value::s_yes.
Referenced by config::attribute_value::string_visitor::operator()(), and operator<<().
|
private |
Definition at line 245 of file config.hpp.
Referenced by operator bool().