Commit 86ada33b authored by Max Lyon's avatar Max Lyon

replace noexcept with compiler dependent NOEXCEPT macro

parent be2213b8
......@@ -5,6 +5,7 @@
#include <Base/Utils/StopWatch.hh>
#include <Base/Debug/DebOut.hh>
#include <Base/Utils/Exception.hh>
#ifdef DEB_ON
......@@ -20,7 +21,7 @@ public:
sw_.start();
}
~StopWatchSession() noexcept(false)
~StopWatchSession() NOEXCEPT(false)
{
// TODO: implement "prettier" DEB out if seconds turn into minutes/hours/etc
DEB_line(deb_lvl_, sssn_name_ << " took " << sw_.stop()/1000.0 << " s.");
......
/*===========================================================================*\
* *
* IGM *
* Copyright (C) 2017 by Computer Graphics Group, RWTH Aachen *
* www.rwth-graphics.de *
* *
\*===========================================================================*/
// Since noexcept is not supported by all compiler we define the NOEXCEPT macro here
// which does nothing if noexcept is not supported and passes its argument to noexcept
// if it is supported.
#if defined(_MSC_VER) && (_MSC_VER <= 1800)
// noexcept not supported
#define NOEXCEPT(ON)
#else
// noexcept supported
#define NOEXCEPT(ON) noexcept(ON)
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment