Skip to content

Commit 7926328

Browse files
authored
Merge pull request #1586 from Deltajom/cpp20dev
Specify std::error_code usage in parser.cpp, without it fails to comp…
2 parents 9763bc6 + 974e009 commit 7926328

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/config/parser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ namespace config {
2828

2929
using namespace std::filesystem;
3030
using namespace boost::program_options;
31-
using namespace boost::system;
3231

3332
BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
3433

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

9594
// If the existence test errors out we pretend there's no file :/.
96-
error_code code;
95+
std::error_code code;
9796
if (!config_path.empty() && exists(config_path, code))
9897
{
9998
const auto& path = config_path.string();

0 commit comments

Comments
 (0)