From 57475da665e910f03c322695403d2eeaf413f722 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Wed, 2 May 2012 14:59:33 +0200 Subject: [PATCH] Workaround gcc bug #52841 --- zypp/Resolvable.h | 4 ++-- zypp/base/SafeBool.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zypp/Resolvable.h b/zypp/Resolvable.h index e9a74b0..762f20e 100644 --- a/zypp/Resolvable.h +++ b/zypp/Resolvable.h @@ -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 diff --git a/zypp/base/SafeBool.h b/zypp/base/SafeBool.h index a203abd..a2aef6b 100644 --- a/zypp/base/SafeBool.h +++ b/zypp/base/SafeBool.h @@ -69,7 +69,7 @@ namespace zypp template 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(this))->boolTest() -- 2.7.4