Compare commits

...

4 Commits

Author SHA1 Message Date
Vladimir Prus
255c207e3a Delete _codeql_detected_source_root 2025-12-04 11:01:13 +00:00
copilot-swe-agent[bot]
976f3d7b06 Complete PR for moving arg variable to detail namespace
Co-authored-by: vprus <225915+vprus@users.noreply.github.com>
2025-12-04 10:54:56 +00:00
copilot-swe-agent[bot]
1cc6874c92 Move 'arg' variable to detail namespace (issue #150)
Co-authored-by: vprus <225915+vprus@users.noreply.github.com>
2025-12-04 10:53:44 +00:00
copilot-swe-agent[bot]
714e07dcc6 Initial plan 2025-12-04 10:49:27 +00:00
2 changed files with 8 additions and 4 deletions

View File

@@ -17,13 +17,15 @@ namespace boost { template<class T> class optional; }
namespace boost { namespace program_options {
extern BOOST_PROGRAM_OPTIONS_DECL std::string arg;
namespace detail {
extern BOOST_PROGRAM_OPTIONS_DECL std::string arg;
}
template<class T, class charT>
std::string
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()) {
std::string msg = "[=" + var + "(=" + m_implicit_value_as_text + ")]";
if (!m_default_value.empty() && !m_default_value_as_text.empty())

View File

@@ -84,12 +84,14 @@ namespace boost { namespace program_options {
}
#endif
BOOST_PROGRAM_OPTIONS_DECL std::string arg("arg");
namespace detail {
BOOST_PROGRAM_OPTIONS_DECL std::string arg("arg");
}
std::string
untyped_value::name() const
{
return arg;
return detail::arg;
}
unsigned