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); } /*