Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

technical fix for compiler issue on gcc490. #3308

Merged
merged 4 commits into from Apr 14, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions CondCore/CondDB/interface/KeyList.h
Expand Up @@ -37,8 +37,8 @@ namespace cond {

template<typename T>
boost::shared_ptr<T> get(size_t n) const {
if( n> (size()-1) ) throwException( "Index outside the bounds of the key array.",
"KeyList::get");
if( n >= size() ) throwException( "Index outside the bounds of the key array.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does not compile
use "int(n)"

"KeyList::get");
if( !m_objects[n] ){
auto i = m_data.find( n );
if( i != m_data.end() ){
Expand Down