Skip to content

Commit d95d316

Browse files
committed
fix msvc 10 error.
1 parent 0410ddc commit d95d316

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/options_description.cpp

+2-1
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)