aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorras0219 <robertallenschumacher@gmail.com>2020-07-01 21:05:18 -0700
committerGitHub <noreply@github.com>2020-07-01 21:05:18 -0700
commita218d0e61dbca3328b38f9bf3a96d44a2e1948ae (patch)
tree4166a646516161138529b1415b0e4cd2bde84fcf
parent66b906e3ad7445ed8856304f2b27a3ca3e2a9b0e (diff)
downloadvcpkg-a218d0e61dbca3328b38f9bf3a96d44a2e1948ae.tar.gz
vcpkg-a218d0e61dbca3328b38f9bf3a96d44a2e1948ae.zip
[vcpkg] Remove all uses of Foo::Foo() noexcept = default; to fix #9955 (#12201)
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
-rw-r--r--toolsrc/include/vcpkg/packagespec.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/toolsrc/include/vcpkg/packagespec.h b/toolsrc/include/vcpkg/packagespec.h
index 8d055e88a..ae771f20c 100644
--- a/toolsrc/include/vcpkg/packagespec.h
+++ b/toolsrc/include/vcpkg/packagespec.h
@@ -20,8 +20,8 @@ namespace vcpkg
///
struct PackageSpec
{
- PackageSpec() noexcept = default;
- PackageSpec(std::string name, Triplet triplet) : m_name(std::move(name)), m_triplet(triplet) { }
+ PackageSpec() = default;
+ PackageSpec(std::string name, Triplet triplet) : m_name(std::move(name)), m_triplet(triplet) {}
static std::vector<PackageSpec> to_package_specs(const std::vector<std::string>& ports, Triplet triplet);
@@ -54,7 +54,7 @@ namespace vcpkg
///
struct FeatureSpec
{
- FeatureSpec(const PackageSpec& spec, const std::string& feature) : m_spec(spec), m_feature(feature) { }
+ FeatureSpec(const PackageSpec& spec, const std::string& feature) : m_spec(spec), m_feature(feature) {}
const std::string& name() const { return m_spec.name(); }
const std::string& feature() const { return m_feature; }
@@ -97,7 +97,7 @@ namespace vcpkg
PackageSpec package_spec;
std::vector<std::string> features;
- FullPackageSpec() noexcept = default;
+ FullPackageSpec() = default;
explicit FullPackageSpec(PackageSpec spec, std::vector<std::string> features = {})
: package_spec(std::move(spec)), features(std::move(features))
{