mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 03:47:59 +08:00
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
This commit is contained in:
parent
66b906e3ad
commit
a218d0e61d
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user