This file has several instances of references with a 'const' issue on Solaris.
The issue is solved for one instance in Uuid.cpp in
where const_cast is applied: const_cast<uint8_t*>(data)
I propose adding a macro somewhere and a compile-time switch to control it:
- define UUID_DATA(X) const_cast<uint8_t*>((X))
- define UUID_DATA(X) (X)
Files types/Uuid.cpp and framing/Uuid.cpp would both use this scheme.
Then Linux platforms all enjoy the benefits of const-ness while only
Solaris loses const-ness.
This applies to all compilers, SolStudio or g++ or whatever.
Alternatively, the offending call sites could simply be changed
to the const_cast<> and be done with it.