summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/include/usr/hwpf/plat/fapiPlatAttributeService.H12
-rw-r--r--src/include/usr/targeting/iterators/rangefilter.H6
-rw-r--r--src/usr/targeting/iterators/rangefilter.C16
3 files changed, 22 insertions, 12 deletions
diff --git a/src/include/usr/hwpf/plat/fapiPlatAttributeService.H b/src/include/usr/hwpf/plat/fapiPlatAttributeService.H
index 3d38d0e79..e932bca6d 100755
--- a/src/include/usr/hwpf/plat/fapiPlatAttributeService.H
+++ b/src/include/usr/hwpf/plat/fapiPlatAttributeService.H
@@ -104,11 +104,11 @@ namespace platAttrSvc
#define FAPI_PLAT_ATTR_SVC_GETMACRO_DIRECT(ID, PTARGET, VAL) \
( ((PTARGET) ? \
static_cast<TARGETING::Target*>( \
- static_cast<fapi::Target*>(PTARGET)->get()) \
+ static_cast<const fapi::Target*>(PTARGET)->get()) \
: fapi::platAttrSvc::getSystemTarget())->tryGetAttr< \
FAPI_PLAT_ATTR_SVC_MACRO_DIRECT_FAPI_##ID>(VAL)) \
- ? FAPI_RC_SUCCESS : fapi::platAttrSvc::createAttrAccessError( \
- FAPI_PLAT_ATTR_SVC_MACRO_DIRECT_FAPI_##ID,ID,PTARGET)
+ ? fapi::FAPI_RC_SUCCESS : fapi::platAttrSvc::createAttrAccessError( \
+ FAPI_PLAT_ATTR_SVC_MACRO_DIRECT_FAPI_##ID,fapi::ID,PTARGET)
/**
* @brief Macro which directly maps a FAPI request to set a platform
* attribute to the equivalent host boot request
@@ -116,11 +116,11 @@ namespace platAttrSvc
#define FAPI_PLAT_ATTR_SVC_SETMACRO_DIRECT(ID, PTARGET, VAL) \
( ((PTARGET) ? \
static_cast<TARGETING::Target*>( \
- static_cast<fapi::Target*>(PTARGET)->get()) \
+ static_cast<const fapi::Target*>(PTARGET)->get()) \
: fapi::platAttrSvc::getSystemTarget())->trySetAttr< \
FAPI_PLAT_ATTR_SVC_MACRO_DIRECT_FAPI_##ID>(VAL)) \
- ? FAPI_RC_SUCCESS : fapi::platAttrSvc::createAttrAccessError( \
- FAPI_PLAT_ATTR_SVC_MACRO_DIRECT_FAPI_##ID,ID,PTARGET)
+ ? fapi::FAPI_RC_SUCCESS : fapi::platAttrSvc::createAttrAccessError( \
+ FAPI_PLAT_ATTR_SVC_MACRO_DIRECT_FAPI_##ID,fapi::ID,PTARGET)
}
}
diff --git a/src/include/usr/targeting/iterators/rangefilter.H b/src/include/usr/targeting/iterators/rangefilter.H
index 21393bf2a..458bf3b9d 100644
--- a/src/include/usr/targeting/iterators/rangefilter.H
+++ b/src/include/usr/targeting/iterators/rangefilter.H
@@ -115,11 +115,7 @@ class RangeFilter
* @brief Dummy function used to implement ability to check if range
* iterator is valid
*/
- operator fake_bool() const
- {
- return (iv_current != iv_end)
- ? &RangeFilter::notComparable : NULL;
- }
+ operator fake_bool() const;
/**
* @brief Pre-increment operator which advances the range's iterator
diff --git a/src/usr/targeting/iterators/rangefilter.C b/src/usr/targeting/iterators/rangefilter.C
index fa6ca72ab..c82a183be 100644
--- a/src/usr/targeting/iterators/rangefilter.C
+++ b/src/usr/targeting/iterators/rangefilter.C
@@ -93,7 +93,18 @@ void RangeFilter<IteratorType>::advanceIfNoMatch()
advance();
}
}
-
+
+//******************************************************************************
+// RangeFilter<IteratorType>::operator fake_bool
+//******************************************************************************
+
+template<typename IteratorType>
+RangeFilter<IteratorType>::operator fake_bool() const
+{
+ return (iv_current != iv_end)
+ ? &RangeFilter::notComparable : NULL;
+}
+
//******************************************************************************
// Explicit template class member function instantiations
//******************************************************************************
@@ -104,6 +115,9 @@ template void RangeFilter<ConstTargetIterator>::advance();
template void RangeFilter<TargetIterator>::advanceIfNoMatch();
template void RangeFilter<ConstTargetIterator>::advanceIfNoMatch();
+template RangeFilter<TargetIterator>::operator fake_bool() const;
+template RangeFilter<ConstTargetIterator>::operator fake_bool() const;
+
#undef TARG_CLASS
#undef TARG_NAMESPACE
OpenPOWER on IntegriCloud