Skip to content

Commit

Permalink
[vcpkg] Remove all uses of Foo::Foo() noexcept = default; to fix micr…
Browse files Browse the repository at this point in the history
…osoft#9955 (microsoft#12201)

Co-authored-by: Robert Schumacher <[email protected]>
  • Loading branch information
ras0219 and ras0219-msft authored Jul 2, 2020
1 parent d783ad4 commit 18fa4b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/vcpkg/packagespec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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; }
Expand Down Expand Up @@ -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))
{
Expand Down

0 comments on commit 18fa4b2

Please sign in to comment.