GCC 4.7 compilation fixes
clarify binding of function (by specifying 'this')
This commit is contained in:
parent
954ebefc4c
commit
e267e0ad0b
2 changed files with 14 additions and 18 deletions
|
|
@ -143,7 +143,7 @@ namespace lumiera {
|
|||
virtual bool
|
||||
resolve (Ret& solution, Query<TY> const& q)
|
||||
{
|
||||
const any& entry = fetch_from_table_for (q.asKey());
|
||||
const any& entry = this->fetch_from_table_for (q.asKey());
|
||||
if (!isnil (entry))
|
||||
{
|
||||
Ret const& candidate (any_cast<Ret const&> (entry));
|
||||
|
|
@ -166,7 +166,7 @@ namespace lumiera {
|
|||
if (is_defaults_query (newQuery)) // modified query..
|
||||
return solution = Session::current->defaults (newQuery);
|
||||
// may cause recursion
|
||||
if (detect_case (solution, newQuery))
|
||||
if (this->detect_case (solution, newQuery))
|
||||
return resolve (solution, newQuery);
|
||||
|
||||
return solution = Ret(); // fail: return default-constructed empty smart ptr
|
||||
|
|
|
|||
|
|
@ -102,8 +102,20 @@ namespace util {
|
|||
}//(End) guards/helpers
|
||||
|
||||
|
||||
/** @return a string denoting the type. */
|
||||
template<typename TY>
|
||||
inline string
|
||||
tyStr (const TY* =0)
|
||||
{
|
||||
return string("«")+typeid(TY).name()+"»";
|
||||
}
|
||||
|
||||
template<typename TY>
|
||||
inline string
|
||||
tyStr (TY const& ref)
|
||||
{ return tyStr(&ref); }
|
||||
|
||||
|
||||
/** try to get an object converted to string.
|
||||
* A custom/standard conversion to string is used,
|
||||
* if applicable; otherwise, some standard types can be
|
||||
|
|
@ -126,21 +138,5 @@ namespace util {
|
|||
: tyStr(val);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** @return a string denoting the type. */
|
||||
template<typename TY>
|
||||
inline string
|
||||
tyStr (const TY* =0)
|
||||
{
|
||||
return string("«")+typeid(TY).name()+"»";
|
||||
}
|
||||
|
||||
template<typename TY>
|
||||
inline string
|
||||
tyStr (TY const& ref)
|
||||
{ return tyStr(&ref); }
|
||||
|
||||
|
||||
} // namespace util
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue