36 InitSanitizer(T
const &t) {
40 InitSanitizer &operator=(T
const &t) {
52 std::cerr <<
"Error: param \"" << name <<
"\" is used ";
53 std::cerr <<
"uninitialized, please assign it a m_value using ";
54 std::cerr <<
"standard m_value assignement.\n";
64 void print(std::ostream &out = std::cout)
const 67 out << name <<
" = " << m_value <<
'\n';
69 out << name <<
" uninitialized.\n";
73 std::ostream &operator<<(
75 InitSanitizer
const &san
89 bool m_safe {
false };
Namespace for csl library.
Definition: abreviation.h:34
Encapsulates a value of a given to ensure that it initialized when used.
Definition: initSanitizer.h:21