Skip to content

Commit 64c3ae0

Browse files
emreturkayvprus
authored andcommitted
Specified a default value for the template argument of parse_config_file.
1 parent a2cbe31 commit 64c3ae0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/boost/program_options/parsers.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,11 @@ namespace boost { namespace program_options {
190190
Read from file with the given name. The character type is
191191
passed to the file stream.
192192
*/
193+
#ifdef BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
193194
template<class charT>
195+
#else
196+
template<class charT = char>
197+
#endif
194198
#if ! BOOST_WORKAROUND(__ICL, BOOST_TESTED_AT(700))
195199
BOOST_PROGRAM_OPTIONS_DECL
196200
#endif

src/parsers.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ namespace boost { namespace program_options {
140140
bool allow_unregistered);
141141
#endif
142142

143+
#ifdef BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
143144
template<class charT>
145+
#else
146+
template<class charT = char>
147+
#endif
144148
basic_parsed_options<charT>
145149
parse_config_file(const char* filename,
146150
const options_description& desc,

0 commit comments

Comments
 (0)