You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingnamespaceunits;
measurement length1=45.0*m;
measurement length2=20.0*m;
measurement area=length1*length2;
std::cout<<"the area is "<<area<< " or "<<area.convert_to(ft.pow(2))<<".\n";
Produces the following compile error (MinGW 7.3.0).
error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'units::measurement')
std::cout<<"the area is "<<area<< " or "<<area.convert_to(ft.pow(2))<<".\n";
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
Searching the code I have found the following line in units_decl.h
The usage code from the documentation:
Produces the following compile error (MinGW 7.3.0).
Searching the code I have found the following line in
units_decl.h
// std::ostream &operator<<(std::ostream &stream, units::unit u);
So does this mean, the stream operator is currently disabled and does not work or am I doing something wrong?
Thank you
The text was updated successfully, but these errors were encountered: