Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example/autoprefixes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct thing_base_unit : boost::units::base_unit<thing_base_unit, boost::units::
struct euro_base_unit : boost::units::base_unit<euro_base_unit, boost::units::dimensionless_type, 5>
{
static constexpr const char* name() { return("EUR"); }
static constexpr const char* symbol() { return(""); }
static constexpr const char* symbol() { return(""); }
};

int main()
Expand Down Expand Up @@ -140,7 +140,7 @@ int main()

quantity<euro_base_unit::unit_type> ce = 2048. * euro_base_unit::unit_type();
cout << name_format << engineering_prefix << ce << endl; // 2.048 kiloEUR
cout << symbol_format << engineering_prefix << ce << endl; // 2.048 k
cout << symbol_format << engineering_prefix << ce << endl; // 2.048 k


return 0;
Expand Down