CPPxDIC
C++ Digital Image Correlation library for fingertip 3D reconstruction
Loading...
Searching...
No Matches
cppxdic::log::Voidify Class Reference

Helper that turns the conditional logging expression into a void statement (glog idiom). More...

#include <logging.h>

Public Member Functions

 Voidify ()=default
 
void operator& (Stream &)
 

Detailed Description

Helper that turns the conditional logging expression into a void statement (glog idiom).

operator& has lower precedence than << but higher than ?:, so the macros are safe inside an unbraced if/else.

Definition at line 152 of file logging.h.

Constructor & Destructor Documentation

◆ Voidify()

cppxdic::log::Voidify::Voidify ( )
default

Member Function Documentation

◆ operator&()

void cppxdic::log::Voidify::operator& ( Stream &  )
inline

Definition at line 155 of file logging.h.


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