Skip to content

Commit

Permalink
change throw in destructor to an assert, to silence cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 9, 2014
1 parent 02d8d0a commit f1d947b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ana/api/binary_streams.hpp
Expand Up @@ -325,7 +325,7 @@ namespace ana
~container_writer()
{
if ( _elements_left != 0 )
throw/* std::runtime_error*/("More elements were expected to be written.");
assert(false && "More elements were expected to be written.");
}
private:

Expand Down

0 comments on commit f1d947b

Please sign in to comment.