Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Trilinos
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 936
    • Issues 936
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • James Willenbring
  • Trilinos
  • Issues
  • #3130

Closed
Open
Created Jul 16, 2018 by James Willenbring@jmwilleMaintainer

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!
Assignee
Assign to
Time tracking