From 5b2f960ceb9c585ebc5b4907811cad1bfbe27dec Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Fri, 19 Dec 2008 22:33:29 +0000 Subject: Fixing tut related compile errors on etch: (1) the LLLand class had to be forward declared in a cpp file that did not include llland.h (2) ensure_equals(const char*, type, type) requires that type have an operator!=(type, type) defined. (3) ensure_equals(const char*, type, type) is so overloaded that the compiler can have trouble picking the right version when it has to implicitly cast a std::string to "const char*" AND multiple valid casts exist for type --> S32, F32, etc. To solve this problem we must explicitly pass in a "const char*" instead of a std::string. Reviewed with CG --- indra/llcommon/lldate.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'indra/llcommon/lldate.cpp') diff --git a/indra/llcommon/lldate.cpp b/indra/llcommon/lldate.cpp index 3cc4cca706..6b4bd0d7ef 100644 --- a/indra/llcommon/lldate.cpp +++ b/indra/llcommon/lldate.cpp @@ -234,6 +234,11 @@ void LLDate::secondsSinceEpoch(F64 seconds) mSecondsSinceEpoch = seconds; } +bool operator!=(const LLDate& first, const LLDate& second) +{ + return (first.secondsSinceEpoch() != second.secondsSinceEpoch()); +} + std::ostream& operator<<(std::ostream& s, const LLDate& date) { date.toStream(s); -- cgit v1.2.3