1 Star 0 Fork 39

markeryang/boost

forked from src-openEuler/boost 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
boost-1.50.0-fix-non-utf8-files.patch 977 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangshuo 提交于 2020-07-23 09:47 +08:00 . update boost from 1.66.0 to 1.73.0
diff --git a/libs/units/example/autoprefixes.cpp b/libs/units/example/autoprefixes.cpp
index 9966766c6..090be0906 100644
--- a/libs/units/example/autoprefixes.cpp
+++ b/libs/units/example/autoprefixes.cpp
@@ -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()
@@ -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;
--
2.19.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/markeryang/boost.git
git@gitee.com:markeryang/boost.git
markeryang
boost
boost
master

搜索帮助