mirror of
https://github.com/boostorg/program_options.git
synced 2026-01-24 18:12:37 +00:00
Compare commits
2 Commits
boost-1.90
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
486e3418ff | ||
|
|
ec6794632f |
@@ -35,7 +35,6 @@ target_link_libraries(boost_program_options
|
|||||||
Boost::iterator
|
Boost::iterator
|
||||||
Boost::lexical_cast
|
Boost::lexical_cast
|
||||||
Boost::smart_ptr
|
Boost::smart_ptr
|
||||||
Boost::static_assert
|
|
||||||
Boost::throw_exception
|
Boost::throw_exception
|
||||||
Boost::type_traits
|
Boost::type_traits
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ constant boost_dependencies :
|
|||||||
/boost/iterator//boost_iterator
|
/boost/iterator//boost_iterator
|
||||||
/boost/lexical_cast//boost_lexical_cast
|
/boost/lexical_cast//boost_lexical_cast
|
||||||
/boost/smart_ptr//boost_smart_ptr
|
/boost/smart_ptr//boost_smart_ptr
|
||||||
/boost/static_assert//boost_static_assert
|
|
||||||
/boost/throw_exception//boost_throw_exception
|
/boost/throw_exception//boost_throw_exception
|
||||||
/boost/type_traits//boost_type_traits ;
|
/boost/type_traits//boost_type_traits ;
|
||||||
|
|
||||||
|
|||||||
@@ -17,13 +17,15 @@ namespace boost { template<class T> class optional; }
|
|||||||
|
|
||||||
namespace boost { namespace program_options {
|
namespace boost { namespace program_options {
|
||||||
|
|
||||||
|
namespace detail {
|
||||||
extern BOOST_PROGRAM_OPTIONS_DECL std::string arg;
|
extern BOOST_PROGRAM_OPTIONS_DECL std::string arg;
|
||||||
|
}
|
||||||
|
|
||||||
template<class T, class charT>
|
template<class T, class charT>
|
||||||
std::string
|
std::string
|
||||||
typed_value<T, charT>::name() const
|
typed_value<T, charT>::name() const
|
||||||
{
|
{
|
||||||
std::string const& var = (m_value_name.empty() ? arg : m_value_name);
|
std::string const& var = (m_value_name.empty() ? detail::arg : m_value_name);
|
||||||
if (!m_implicit_value.empty() && !m_implicit_value_as_text.empty()) {
|
if (!m_implicit_value.empty() && !m_implicit_value_as_text.empty()) {
|
||||||
std::string msg = "[=" + var + "(=" + m_implicit_value_as_text + ")]";
|
std::string msg = "[=" + var + "(=" + m_implicit_value_as_text + ")]";
|
||||||
if (!m_default_value.empty() && !m_default_value_as_text.empty())
|
if (!m_default_value.empty() && !m_default_value_as_text.empty())
|
||||||
|
|||||||
@@ -84,12 +84,14 @@ namespace boost { namespace program_options {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
namespace detail {
|
||||||
BOOST_PROGRAM_OPTIONS_DECL std::string arg("arg");
|
BOOST_PROGRAM_OPTIONS_DECL std::string arg("arg");
|
||||||
|
}
|
||||||
|
|
||||||
std::string
|
std::string
|
||||||
untyped_value::name() const
|
untyped_value::name() const
|
||||||
{
|
{
|
||||||
return arg;
|
return detail::arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned
|
unsigned
|
||||||
|
|||||||
Reference in New Issue
Block a user