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

Commit

Permalink
POC explict template instanciation
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Rocard <[email protected]>
  • Loading branch information
krocard committed Jan 12, 2016
1 parent 637834b commit 95daa50
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions parameter/ElementHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ bool ElementHandle::setAs(const T value, string &error) const
return parameter.access(copy, true, parameterAccessContext);
}

template PARAMETER_EXPORT bool ElementHandle::setAs(bool, string &) const;
template PARAMETER_EXPORT bool ElementHandle::setAs(string, string &) const;
template PARAMETER_EXPORT bool ElementHandle::setAs(double, string &) const;

template <class T>
bool ElementHandle::getAs(T &value, string &error) const
{
Expand All @@ -235,6 +239,10 @@ bool ElementHandle::getAs(T &value, string &error) const
return parameter.access(value, false, parameterAccessContext);
}

template PARAMETER_EXPORT bool ElementHandle::getAs(bool &, string &) const;
template PARAMETER_EXPORT bool ElementHandle::getAs(string &, string &) const;
template PARAMETER_EXPORT bool ElementHandle::getAs(double &, string &) const;

// Boolean access
bool ElementHandle::setAsBoolean(bool bValue, string &error)
{
Expand Down

0 comments on commit 95daa50

Please sign in to comment.