File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 4848#endif
4949
5050
51- #endif // PROGRAM_OPTIONS_CONFIG_HK_2004_01_11
51+ #endif // BOOST_PROGRAM_OPTIONS_CONFIG_HK_2004_01_11
5252
Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ namespace boost { template<class T> class optional; }
1717
1818namespace 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 ())
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments