Through my project I use this date library and units for all other units I have.
The using namespace units::literals; exposes all (?) suffixes into global namespace, and here we have the a conflict inside date::sys_days { 1920_y / jan / 20_d }.
Is there any way to disable literals for specific type? I imagine that as same mechanism as already existing with DISABLE_PREDEFINED_UNITS.
It might go like this:
#define DISABLE_TIME_LITERAL_UNITS
#include <units.h>
using namespace units::literals;
// all literals except units::time are available
Through my project I use this date library and
units
for all other units I have. Theusing namespace units::literals;
exposes all (?) suffixes into global namespace, and here we have the a conflict insidedate::sys_days { 1920_y / jan / 20_d }
.Is there any way to disable literals for specific type? I imagine that as same mechanism as already existing with
DISABLE_PREDEFINED_UNITS
.It might go like this: