Skip to content
Snippets Groups Projects
Commit 49057c35 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

Fixed occurrence of some compilation errors with gcc 4.4.3.

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6611 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent cecae870
No related branches found
No related tags found
No related merge requests found
......@@ -221,6 +221,20 @@ public:
}
private:
struct Blubb {
std::string propertyName;
std::string paramTypeName;
std::string groupName;
Blubb &operator=(const Blubb &b)
{
propertyName = b.propertyName;
paramTypeName = b.paramTypeName;
groupName = b.groupName;
return *this;
};
};
template <class ParamType>
static void check_(const std::string &propertyName,
const char *groupName,
......@@ -228,19 +242,6 @@ private:
{
const std::string &paramTypeName =
Dune::className<ParamType>();
struct Blubb {
std::string propertyName;
std::string paramTypeName;
std::string groupName;
Blubb &operator=(const Blubb &b)
{
propertyName = b.propertyName;
paramTypeName = b.paramTypeName;
groupName = b.groupName;
return *this;
};
};
typedef std::unordered_map<std::string, Blubb> StaticData;
static StaticData staticData;
......
......@@ -37,13 +37,19 @@
// do not do valgrind client requests for gcc < 4.5 (old GCCs do not
// support anonymous template arguments which results in errors inside
// the BoundaryTypes class)
#define SetUndefined(a) foo();
#define SetDefined(a) foo();
#define CheckDefined(a) foo();
#define SetNoAccess(a) foo();
namespace Valgrind
{
inline bool foo() { return true; }; // dummy function
template <class T>
inline bool SetUndefined(const T& t) { return true; }
template <class T>
inline bool SetDefined(const T& t) { return true; }
template <class T>
inline bool CheckDefined(const T& t) { return true; }
template <class T>
inline bool SetNoAccess(const T& t) { return true; }
}
#else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment