From c93811dde153a6db82e0e47c1eb1c8a57f661bf1 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 20 Aug 2019 15:19:50 +0900 Subject: [PATCH] disable warning of cybozu::Option --- include/cybozu/option.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cybozu/option.hpp b/include/cybozu/option.hpp index a5dfd13..f7fa1ba 100644 --- a/include/cybozu/option.hpp +++ b/include/cybozu/option.hpp @@ -345,7 +345,7 @@ class Option { template void append(T *pvar, const U& defaultVal, bool isMust, const char *opt, const std::string& help = "") { - *pvar = defaultVal; + *pvar = static_cast(defaultVal); appendSub(pvar, N_is1, isMust, opt, help); } /*