![]() |
Lumiera 0.pre.04~rc.1
»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 167 of file meta/util.hpp.
Classes | |
| struct | Probe |
Static Public Attributes | |
| static const bool | value |
Static Public Member Functions | |
| 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 (...) |
| template<class XX > | |
| static Yes_t | check_explicit (Probe< XX > *) |
| template<class > | |
| static No_t | check_explicit (...) |
| struct lib::meta::can_convertToString::Probe |
Collaboration diagram for can_convertToString< X >::Probe< XX, i >:Definition at line 186 of file meta/util.hpp.
Collaboration diagram for can_convertToString< X >: