Skip to content

Commit bc0c90a

Browse files
committed
Merge branch 'develop'
2 parents 331ed69 + d95d316 commit bc0c90a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
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/options_description.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ namespace boost { namespace program_options {
181181
const std::pair<const std::string*, std::size_t>
182182
option_description::long_names() const
183183
{
184+
// reinterpret_cast is to please msvc 10.
184185
return (m_long_names.empty())
185-
? std::pair<const std::string*, size_t>( NULL, 0 )
186+
? std::pair<const std::string*, size_t>(reinterpret_cast<const std::string*>(0), 0 )
186187
: std::pair<const std::string*, size_t>( &(*m_long_names.begin()), m_long_names.size());
187188
}
188189

0 commit comments

Comments
 (0)