Skip to content
Snippets Groups Projects
Commit 2aae1ac7 authored by Victor Poughon's avatar Victor Poughon
Browse files

RFC-91: code review: add commented assert for out-of-bounds levelString

parent 946b8a8d
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,12 @@ std::string Logger::BuildFormattedEntry(itk::Logger::PriorityLevelType level, st
{
static const std::string levelString[] = { "(MUSTFLUSH)", "(FATAL)", "(CRITICAL)",
"(WARNING)", "(INFO)", "(DEBUG)", "(NOTSET)" };
// TODO: assert(level <= std::extent<decltype(levelString)>::value); // requires C++11
std::ostringstream s;
switch ( this->m_TimeStampFormat )
{
case REALVALUE:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment