Skip to content

Commit

Permalink
Merge pull request #1586 from Deltajom/cpp20dev
Browse files Browse the repository at this point in the history
Specify std::error_code usage in parser.cpp, without it fails to comp…
  • Loading branch information
evoskuil authored Jan 20, 2025
2 parents 9763bc6 + 974e009 commit 7926328
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/config/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ namespace config {

using namespace std::filesystem;
using namespace boost::program_options;
using namespace boost::system;

BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)

Expand Down Expand Up @@ -93,7 +92,7 @@ bool parser::load_configuration_variables(variables_map& variables,
const auto config_path = get_config_option(variables, option_name);

// If the existence test errors out we pretend there's no file :/.
error_code code;
std::error_code code;
if (!config_path.empty() && exists(config_path, code))
{
const auto& path = config_path.string();
Expand Down

0 comments on commit 7926328

Please sign in to comment.