![]() |
VRS
A file format for sensor data.
|
Substitute for bool POD type, which can be used safely in DataPiece templates. More...
#include <DataPieceTypes.h>
Public Member Functions | |
Bool (bool value=false) | |
Bool & | operator= (bool value) |
operator bool () const | |
const bool * | operator& () const |
bool * | operator& () |
bool | operator== (const Bool &rhs) const |
bool | operator== (bool rhs) const |
bool | operator!= (const Bool &rhs) const |
bool | operator!= (bool rhs) const |
Substitute for bool POD type, which can be used safely in DataPiece templates.
Shamelessly fake bool class, to workaround vector<bool> NOT being a regular container. Should behave like a bool, except that vector<Bool> will be a regular vector. vector<bool> has no data() method, which means it can't be used with DataPiece template code. vector<Bool> does behave like other vector<T> classes. Yes, it's silly. https://stackoverflow.com/questions/17794569/why-isnt-vectorbool-a-stl-container