A wrapper for bool to get the correct streaming ("true"/"false"). More...
#include <config.hpp>
Public Member Functions | |
true_false (bool value=false) | |
operator bool () const | |
const std::string & | str () const |
Private Attributes | |
bool | value_ |
A wrapper for bool to get the correct streaming ("true"/"false").
Most visitors can simply treat this as bool.
Definition at line 228 of file config.hpp.
|
inlineexplicit |
Definition at line 232 of file config.hpp.
|
inline |
Definition at line 233 of file config.hpp.
References value_.
|
inline |
Definition at line 235 of file config.hpp.
References config::attribute_value::s_false, and config::attribute_value::s_true.
Referenced by config::attribute_value::string_visitor::operator()(), and operator<<().
|
private |
Definition at line 230 of file config.hpp.
Referenced by operator bool().