Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/meta/util.hpp"
detect possibility of a conversion to string.
Naive implementation, which first attempts to build a string instance by implicit conversion, and then tries to invoke an explicit string conversion. The embedded constant #value will be true in case any of this succeeds. Might fail in more tricky situations (references, const, volatile)
Definition at line 163 of file meta/util.hpp.
Static Public Member Functions | |
template<class XX > | |
static Yes_t | check_explicit (Probe< XX > *) |
template<class > | |
static No_t | check_explicit (...) |
static Yes_t | check_implicit (std::string) |
static Yes_t | check_implicit (std::string_view) |
static Yes_t | check_implicit (const char *) |
static No_t | check_implicit (...) |
Static Public Attributes | |
static const bool | value |
Classes | |
struct | Probe |
struct lib::meta::can_convertToString::Probe |
|
static |
Definition at line 182 of file meta/util.hpp.