Skip to content
Snippets Groups Projects
Commit ead5029b authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH: remove boost call in StringList

parent ca5c1b8e
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ public:
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
typedef std::vector< boost::any > StringListType;
typedef std::vector< std::string > StringListType;
/** Defining ::New() static method */
itkNewMacro(Self);
......@@ -72,19 +72,12 @@ public:
itkExceptionMacro( "Invalid index "<<i<<" the string list has only "<<m_Value.size()<<" elements...")
}
return boost::any_cast<std::string>(m_Value[i]);
return m_Value[i];
}
bool HasValue() const
{
if (m_Value.empty() == true )
{
return false;
}
else
{
return !m_Value[0].empty();
}
return !m_Value.empty();
}
void ClearValue()
......
......@@ -49,7 +49,7 @@ int otbWrapperStringListParameterTest1(int argc, char* argv[])
numParam->SetKey(key);
numParam->SetDescription(desc);
if( boost::any_cast<std::string>(numParam->GetValue()[0]) != value2 )
if( numParam->GetValue()[0] != value2 )
{
return EXIT_FAILURE;
}
......
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