Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 95daa50

Browse files
committed
POC explict template instanciation
Signed-off-by: Kevin Rocard <kevin.rocard@intel.com>
1 parent 637834b commit 95daa50

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

parameter/ElementHandle.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ bool ElementHandle::setAs(const T value, string &error) const
218218
return parameter.access(copy, true, parameterAccessContext);
219219
}
220220

221+
template PARAMETER_EXPORT bool ElementHandle::setAs(bool, string &) const;
222+
template PARAMETER_EXPORT bool ElementHandle::setAs(string, string &) const;
223+
template PARAMETER_EXPORT bool ElementHandle::setAs(double, string &) const;
224+
221225
template <class T>
222226
bool ElementHandle::getAs(T &value, string &error) const
223227
{
@@ -235,6 +239,10 @@ bool ElementHandle::getAs(T &value, string &error) const
235239
return parameter.access(value, false, parameterAccessContext);
236240
}
237241

242+
template PARAMETER_EXPORT bool ElementHandle::getAs(bool &, string &) const;
243+
template PARAMETER_EXPORT bool ElementHandle::getAs(string &, string &) const;
244+
template PARAMETER_EXPORT bool ElementHandle::getAs(double &, string &) const;
245+
238246
// Boolean access
239247
bool ElementHandle::setAsBoolean(bool bValue, string &error)
240248
{

0 commit comments

Comments
 (0)