Skip to content

Commit

Permalink
prevent clang++ warning "lookup of 'set' in member access expression …
Browse files Browse the repository at this point in the history
…is ambiguous; using member of 'mapped_type'"

(also remove explicit ASCII code from previous commit)


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25873 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
rfranke committed May 2, 2015
1 parent 244eeeb commit c5cc093
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -509,13 +509,12 @@ case SIMCODE(modelInfo=MODELINFO()) then

#else

using boost::extensions::factory;
BOOST_EXTENSION_TYPE_MAP_FUNCTION
{
types.get<std::map<std::string, factory<IMixedSystem,IGlobalSettings*,boost::shared_ptr<IAlgLoopSolverFactory>,boost::shared_ptr<ISimData>,boost::shared_ptr<ISimVars> > > >()
["<%lastIdentOfPath(modelInfo.name)%>"].set<<%lastIdentOfPath(modelInfo.name)%>Extension>();

}
BOOST_EXTENSION_TYPE_MAP_FUNCTION
{
typedef boost::extensions::factory<IMixedSystem,IGlobalSettings*, boost::shared_ptr<IAlgLoopSolverFactory>, boost::shared_ptr<ISimData>, boost::shared_ptr<ISimVars> > system_factory;
types.get<std::map<std::string, system_factory> >()["<%lastIdentOfPath(modelInfo.name)%>"]
.system_factory::set<<%lastIdentOfPath(modelInfo.name)%>Extension>();
}
#endif
>>
end simulationFactoryFile;
Expand Down Expand Up @@ -12614,7 +12613,8 @@ end daeExpIf;

template encloseInParantheses(String expStr)
"Encloses expression in paranthesis if not yet given"
::= if intEq(stringGet(expStr, 1), 40) then '<%expStr%>' else '(<%expStr%>)'
::=
if intEq(stringGet(expStr, 1), stringGet("(", 1)) then '<%expStr%>' else '(<%expStr%>)'
end encloseInParantheses;


Expand Down

0 comments on commit c5cc093

Please sign in to comment.