Sat Mar 2 18:16:39 2013 UTC ()
Fix class vs struct conflict. Put operator in the correct namespace.
(joerg)
diff -r1.12 -r1.13 pkgsrc/devel/kyua-cli/distinfo
diff -r0 -r1.1 pkgsrc/devel/kyua-cli/patches/patch-engine_metadata.hpp
diff -r0 -r1.1 pkgsrc/devel/kyua-cli/patches/patch-utils_units.cpp
diff -r0 -r1.1 pkgsrc/devel/kyua-cli/patches/patch-utils_units.hpp
--- pkgsrc/devel/kyua-cli/Attic/distinfo 2013/02/23 03:37:40 1.12
+++ pkgsrc/devel/kyua-cli/Attic/distinfo 2013/03/02 18:16:38 1.13
| @@ -1,5 +1,8 @@ | | | @@ -1,5 +1,8 @@ |
1 | $NetBSD: distinfo,v 1.12 2013/02/23 03:37:40 jmmv Exp $ | | 1 | $NetBSD: distinfo,v 1.13 2013/03/02 18:16:38 joerg Exp $ |
2 | | | 2 | |
3 | SHA1 (kyua-cli-0.6.tar.gz) = 85453765a497d381570d6f658d90038af894a90f | | 3 | SHA1 (kyua-cli-0.6.tar.gz) = 85453765a497d381570d6f658d90038af894a90f |
4 | RMD160 (kyua-cli-0.6.tar.gz) = a60e317639e60fd688a76297791670b680e7d505 | | 4 | RMD160 (kyua-cli-0.6.tar.gz) = a60e317639e60fd688a76297791670b680e7d505 |
5 | Size (kyua-cli-0.6.tar.gz) = 487249 bytes | | 5 | Size (kyua-cli-0.6.tar.gz) = 487249 bytes |
| | | 6 | SHA1 (patch-engine_metadata.hpp) = 49939194e11a31d77b27f21ba4fa90438d165db6 |
| | | 7 | SHA1 (patch-utils_units.cpp) = cc1870352204fcd39fb4dc6d66134635cf6a46bb |
| | | 8 | SHA1 (patch-utils_units.hpp) = 3cbbcc8889f2cfedd070202a1a9942c35f2f63eb |
$NetBSD: patch-engine_metadata.hpp,v 1.1 2013/03/02 18:16:39 joerg Exp $
--- engine/metadata.hpp.orig 2013-02-28 21:58:41.000000000 +0000
+++ engine/metadata.hpp
@@ -44,7 +44,7 @@
namespace utils {
namespace config { class tree; }
-namespace datetime { class delta; }
+namespace datetime { struct delta; }
namespace fs { class path; }
namespace units { class bytes; }
} // namespace utils
$NetBSD: patch-utils_units.cpp,v 1.1 2013/03/02 18:16:39 joerg Exp $
--- utils/units.cpp.orig 2013-02-28 22:07:12.000000000 +0000
+++ utils/units.cpp
@@ -143,7 +143,7 @@ units::bytes::operator uint64_t(void) co
///
/// \post The bad bit of input is set to 1 if the parsing failed.
std::istream&
-operator>>(std::istream& input, units::bytes& rhs)
+units::operator>>(std::istream& input, units::bytes& rhs)
{
std::string word;
input >> word;
@@ -166,7 +166,7 @@ operator>>(std::istream& input, units::b
///
/// \return The output stream.
std::ostream&
-operator<<(std::ostream& output, const units::bytes& rhs)
+units::operator<<(std::ostream& output, const units::bytes& rhs)
{
return (output << rhs.format());
}
$NetBSD: patch-utils_units.hpp,v 1.1 2013/03/02 18:16:39 joerg Exp $
--- utils/units.hpp.orig 2013-02-28 22:00:54.000000000 +0000
+++ utils/units.hpp
@@ -83,11 +83,11 @@ public:
operator uint64_t(void) const;
};
+std::istream& operator>>(std::istream&, bytes&);
+std::ostream& operator<<(std::ostream&, const bytes&);
} // namespace units
} // namespace utils
-std::istream& operator>>(std::istream&, utils::units::bytes&);
-std::ostream& operator<<(std::ostream&, const utils::units::bytes&);
#endif // !defined(UTILS_UNITS_HPP)