Lumiera  0.pre.03
»edit your freedom«
FormatCOUT_test Class Reference

Description

Test:
How to build generic string conversion into ostream::operator<<.

This task (#985) was actually a conglomerate of several chores:

  • sanitise and segregate the type-traits usage
  • disentangle the existing util::str() conversion helper
  • extract a basic form from this helper, which can be placed into a header with minimal dependencies. After some consideration, I decided to allow <typeinfo> in this category, which allows us at least to show a type name as fallback
  • distill an essential version of enable_if, which can be inlined. This allowed us to get rid of boost::enable_if finally.
  • build a sensible operator string() for our lib::P based on this
  • and finally, to come up with a templated version of the ostream inserter operator<<, which does not cause too much havoc when used by default. The greatest challenge here is to avoid ambiguous overloads, yet also to deal with references, void and arrays.
See also
format-cout.hpp
FormatHelper_test

Definition at line 140 of file format-cout-test.cpp.

Private Member Functions

void run (Arg)
 
+ Inheritance diagram for FormatCOUT_test:
+ Collaboration diagram for FormatCOUT_test:

The documentation for this class was generated from the following file: