Classes | |
| struct | tts::text |
| Lightweight string-like object. More... | |
Functions | |
| template<typename T > | |
| text | tts::as_text (T const &e) |
| Value-to-string conversion. | |
| text tts::as_text | ( | T const & | e | ) |
#include <tts/tools/as_text.hpp>
Value-to-string conversion.
When displaying the data required to understand a test's failures, TTS may need to print out value of various types. as_text provides a centralized way to perform such a task by handling most common types including:
as_text takes care of applying any command-line options related to formatting to the value printed. For user defined types, an overload of a to_text function must be found via ADL.
| e | Value to convert to tts::text |