Teuchos: Dynamic Cast Errors from XML-read Array<string>
Created by: csiefer2
A Trilinos test. I have an XML file with lines like this:
<Parameter name="avatar: decision tree files" type="Array(string)" value="{'avatar.trees'}"/>
I rely on the Teuchos XML reader to read that.
I do this:
const Teuchos::Array<std::string> & tf = params_.get<const Teuchos::Array<std::string> >(paramName);
I get this error:
> p=0: *** Caught standard std::exception of type 'std::logic_error' :
>
> /ascldap/users/csiefer/Trilinos/sandbox5/Trilinos/packages/teuchos/core/src/
> Teuchos_any.hpp:361:
>
> Throw number = 1
>
> Throw test that evaluated to true: !dyn_cast_content
>
> any_cast<Teuchos::Array<std::string>>(operand): Error, cast to type
> any::holder<Teuchos::Array<std::string>> failed but should not have and
> the actual underlying type is
> 'Teuchos::any::holder<Teuchos::Array<std::string> >! The problem might
> be related to incompatible RTTI systems in static and shared libraries!