Skip to content

Commit b3ca12e

Browse files
committed
Merge branch 'develop'
2 parents 59ca47b + cb9af10 commit b3ca12e

6 files changed

Lines changed: 12 additions & 10 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ target_link_libraries(boost_program_options
3535
Boost::iterator
3636
Boost::lexical_cast
3737
Boost::smart_ptr
38-
Boost::static_assert
3938
Boost::throw_exception
4039
Boost::type_traits
4140
PRIVATE

build.jam

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ constant boost_dependencies :
1414
/boost/iterator//boost_iterator
1515
/boost/lexical_cast//boost_lexical_cast
1616
/boost/smart_ptr//boost_smart_ptr
17-
/boost/static_assert//boost_static_assert
1817
/boost/throw_exception//boost_throw_exception
1918
/boost/type_traits//boost_type_traits ;
2019

include/boost/program_options.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
// See www.boost.org/libs/program_options for documentation.
77

8-
#ifndef PROGRAM_OPTIONS_VP_2003_05_19
9-
#define PROGRAM_OPTIONS_VP_2003_05_19
8+
#ifndef BOOST_PROGRAM_OPTIONS_VP_2003_05_19
9+
#define BOOST_PROGRAM_OPTIONS_VP_2003_05_19
1010

1111
#if defined(_MSC_VER)
1212
#pragma once
@@ -22,4 +22,4 @@
2222
#include <boost/program_options/value_semantic.hpp>
2323
#include <boost/program_options/version.hpp>
2424

25-
#endif
25+
#endif // BOOST_PROGRAM_OPTIONS_VP_2003_05_19

include/boost/program_options/config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@
4848
#endif
4949

5050

51-
#endif // PROGRAM_OPTIONS_CONFIG_HK_2004_01_11
51+
#endif // BOOST_PROGRAM_OPTIONS_CONFIG_HK_2004_01_11
5252

include/boost/program_options/detail/value_semantic.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ namespace boost { template<class T> class optional; }
1717

1818
namespace boost { namespace program_options {
1919

20-
extern BOOST_PROGRAM_OPTIONS_DECL std::string arg;
20+
namespace detail {
21+
extern BOOST_PROGRAM_OPTIONS_DECL std::string arg;
22+
}
2123

2224
template<class T, class charT>
2325
std::string
2426
typed_value<T, charT>::name() const
2527
{
26-
std::string const& var = (m_value_name.empty() ? arg : m_value_name);
28+
std::string const& var = (m_value_name.empty() ? detail::arg : m_value_name);
2729
if (!m_implicit_value.empty() && !m_implicit_value_as_text.empty()) {
2830
std::string msg = "[=" + var + "(=" + m_implicit_value_as_text + ")]";
2931
if (!m_default_value.empty() && !m_default_value_as_text.empty())

src/value_semantic.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@ namespace boost { namespace program_options {
8484
}
8585
#endif
8686

87-
BOOST_PROGRAM_OPTIONS_DECL std::string arg("arg");
87+
namespace detail {
88+
BOOST_PROGRAM_OPTIONS_DECL std::string arg("arg");
89+
}
8890

8991
std::string
9092
untyped_value::name() const
9193
{
92-
return arg;
94+
return detail::arg;
9395
}
9496

9597
unsigned

0 commit comments

Comments
 (0)