diff --git a/Config/include/Luau/Config.h b/Config/include/Luau/Config.h index d6016229..64b76f07 100644 --- a/Config/include/Luau/Config.h +++ b/Config/include/Luau/Config.h @@ -21,10 +21,10 @@ constexpr const char* kConfigName = ".luaurc"; struct Config { Config(); - Config(const Config& other) noexcept; - Config& operator=(const Config& other) noexcept; - Config(Config&& other) noexcept = default; - Config& operator=(Config&& other) noexcept = default; + Config(const Config& other); + Config& operator=(const Config& other); + Config(Config&& other) = default; + Config& operator=(Config&& other) = default; Mode mode = Mode::Nonstrict; diff --git a/Config/src/Config.cpp b/Config/src/Config.cpp index 3760fd9e..345e039c 100644 --- a/Config/src/Config.cpp +++ b/Config/src/Config.cpp @@ -17,7 +17,7 @@ Config::Config() enabledLint.setDefaults(); } -Config::Config(const Config& other) noexcept +Config::Config(const Config& other) : mode(other.mode) , parseOptions(other.parseOptions) , enabledLint(other.enabledLint) @@ -40,7 +40,7 @@ Config::Config(const Config& other) noexcept } } -Config& Config::operator=(const Config& other) noexcept +Config& Config::operator=(const Config& other) { if (this != &other) {