diff --git a/beast/chrono/chrono_io.h b/beast/chrono/chrono_io.h index fdcf475550..bfbcd92cc0 100644 --- a/beast/chrono/chrono_io.h +++ b/beast/chrono/chrono_io.h @@ -371,8 +371,10 @@ template basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, duration<_Rep, _Period>& __d) { - typedef basic_string<_CharT> string_type; - typedef durationpunct _F; + // These are unused and generate warnings + //typedef basic_string<_CharT> string_type; + //typedef durationpunct _F; + typedef typename __duration_io_intermediate<_Rep>::type _IR; _IR __r; // read value into __r