I\'ve a constant struct timespec member in my class. How am I supposed to initialize it?
struct timespec
The only crazy idea I got is to derive my own timespec
timespec
Use initialization list
class Foo { private: const timespec bar; public: Foo ( void ) : bar(100) { } };
If you want to initialize structure with bracers then use them
Foo ( void ) : bar({1, 2})