Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
d5cf6661
Commit
d5cf6661
authored
May 19, 2004
by
Lynn Garren
Browse files
fix Solaris problem
parent
0bffcd91
Changes
1
Hide whitespace changes
Inline
Side-by-side
HepPDT/HepPDT/TableBuilderT.icc
View file @
d5cf6661
// $Id: TableBuilderT.icc,v 1.2 200
3
/0
8
/1
3
2
0:00:11
garren Exp $
// $Id: TableBuilderT.icc,v 1.2
.2.1
200
4
/0
5
/1
9
2
2:23:34
garren Exp $
// ----------------------------------------------------------------------
//
// TableBuilderT.icc
...
...
@@ -27,9 +27,15 @@ template< class Config >
TempParticleData & TableBuilderT<Config>::getParticleData( ParticleID pid )
{
TempMap::iterator it = tempPDT.find( pid );
return ( it == tempPDT.end() )
? tempPDT[pid] = TempParticleData(pid) // new one
: it->second; // old one
// for some reason, Solaris CC can't cope with the more compact code
if ( it == tempPDT.end() ) {
return tempPDT[pid] = TempParticleData(pid);
} else {
return it->second;
}
//return ( it == tempPDT.end() )
// ? tempPDT[pid] = TempParticleData(pid) // new one
// : it->second; // old one
}
template< class Config >
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment