Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/meta/trait.hpp"
types able to be lexically converted to string representation
lexical_cast<..>
expressions. Such an expression won't even compile for some types, because of missing or ambiguous output operator(s). Ideally, there would be some automatic detection (relying on the existence of an operator<<
for the given type. But at my first attempt in 2009 (commit 1533e5bd0) I couldn't make this work, so I fell back on just declaring all classes of types which are known to work with lexical_cast to string. operator<<
to use custom string conversions; this trait is essential to exclude types which can be printed as-is.