@@ -1195,6 +1195,18 @@ class DIMCLI_LIB_DECL CliLocal : public Cli {
11951195
11961196class DIMCLI_LIB_DECL Cli::Convert {
11971197public:
1198+ // -----------------------------------------------------------------------
1199+ // CONFIGURATION
1200+
1201+ // Change the locale used when parsing values via iostream. Defaults to
1202+ // the user's preferred locale (aka locale("")) for arithmetic types and
1203+ // the "C" locale for everything else.
1204+ std::locale imbue (const std::locale & loc);
1205+ std::locale getloc () const ;
1206+
1207+ // -----------------------------------------------------------------------
1208+ // CONVERSIONS
1209+
11981210 // Converts from string to T.
11991211 template <typename T>
12001212 [[nodiscard]] bool fromString (T & out, const std::string & value) const ;
@@ -1204,9 +1216,6 @@ class DIMCLI_LIB_DECL Cli::Convert {
12041216 template <typename T>
12051217 [[nodiscard]] bool toString (std::string & out, const T & src) const ;
12061218
1207- protected:
1208- mutable std::stringstream m_interpreter;
1209-
12101219private:
12111220 template <typename T>
12121221 auto fromString_impl (T & out, const std::string & src, int , int , int ) const
@@ -1244,6 +1253,8 @@ class DIMCLI_LIB_DECL Cli::Convert {
12441253
12451254 template <typename T>
12461255 bool toString_impl (std::string & out, const T & src, long , long ) const ;
1256+
1257+ mutable std::stringstream m_interpreter;
12471258};
12481259
12491260// ===========================================================================
@@ -1500,14 +1511,6 @@ class DIMCLI_LIB_DECL Cli::OptBase : public Cli::Convert {
15001511 OptBase (const std::string & names, bool flag);
15011512 virtual ~OptBase () {}
15021513
1503- // -----------------------------------------------------------------------
1504- // CONFIGURATION
1505-
1506- // Change the locale used when parsing values via iostream. Defaults to
1507- // the user's preferred locale (aka locale("")) for arithmetic types and
1508- // the "C" locale for everything else.
1509- std::locale imbue (const std::locale & loc);
1510-
15111514 // -----------------------------------------------------------------------
15121515 // QUERIES
15131516
0 commit comments