Workaround gcc bug #52841
authorMichael Andres <ma@suse.de>
Wed, 2 May 2012 12:59:33 +0000 (14:59 +0200)
committerMichael Andres <ma@suse.de>
Wed, 2 May 2012 12:59:33 +0000 (14:59 +0200)
zypp/Resolvable.h
zypp/base/SafeBool.h

index e9a74b0..762f20e 100644 (file)
@@ -36,7 +36,7 @@ namespace zypp
   /** Interface base for resolvable objects (identification and dependencies).
    * \todo Merge with ResObject
   */
-  class Resolvable : protected sat::Solvable,
+  class Resolvable : protected zypp::sat::Solvable,    // Note: gcc bug #52841 prohibits using just sat::Solvable
                      public base::ReferenceCounted, private base::NonCopyable
   {
     friend std::ostream & operator<<( std::ostream & str, const Resolvable & obj );
@@ -51,7 +51,7 @@ namespace zypp
   public:
 #ifndef SWIG // Swig treats it as syntax error
     /** Whether this represents a valid- or no-solvable. */
-    using sat::Solvable::operator bool_type;
+    using zypp::sat::Solvable::operator bool_type;     // Note: gcc bug #52841 prohibits using just sat::Solvable
 #endif
     /** Whether this represents an installed solvable. */
     bool isSystem() const
index a203abd..a2aef6b 100644 (file)
@@ -69,7 +69,7 @@ namespace zypp
     template<class _Derived>
       struct SafeBool : private safebool_detail::SafeBoolBase
       {
-        typedef safebool_detail::SafeBoolBase::bool_type bool_type;
+        using safebool_detail::SafeBoolBase::bool_type;
         operator bool_type() const
         {
           return( (static_cast<const _Derived *>(this))->boolTest()