Remove triplet operator<< overload
MODIFY
include/triplet.h
include/triplet.h
@@ -26,8 +26,6 @@ namespace vcpkg
bool operator==(const Triplet& left, const Triplet& right);
bool operator!=(const Triplet& left, const Triplet& right);
-
- std::ostream& operator<<(std::ostream& os, const Triplet& spec);
}
namespace std

MODIFY
src/BinaryParagraph.cpp
src/BinaryParagraph.cpp
@@ -85,7 +85,7 @@ namespace vcpkg
os << "\n";
}
- os << "Architecture: " << p.spec.target_triplet() << "\n";
+ os << "Architecture: " << p.spec.target_triplet().to_string() << "\n";
os << "Multi-Arch: same\n";
if (!p.maintainer.empty())
os << "Maintainer: " << p.maintainer << "\n";

MODIFY
src/triplet.cpp
src/triplet.cpp
@@ -21,11 +21,6 @@ namespace vcpkg
return !(left == right);
}
- std::ostream& operator<<(std::ostream& os, const Triplet& t)
- {
- return os << t.to_string();
- }
-
Triplet Triplet::from_canonical_name(const std::string& triplet_as_string)
{
const std::string s(Strings::ascii_to_lowercase(triplet_as_string));

Remove triplet operator<< overload