Commit 2649a2d8 authored by Alexander Wiebel's avatar Alexander Wiebel

[FIX #413] fixed "warning: throw will always call terminate() in C++11...

[FIX #413] fixed  "warning: throw will always call terminate() in C++11 destructors default to noexcept"
parent 7260d300
...@@ -33,6 +33,7 @@ extern "C" ...@@ -33,6 +33,7 @@ extern "C"
#include <cstddef> #include <cstddef>
#include <cstdio> #include <cstdio>
#include <iostream>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <vector> #include <vector>
...@@ -84,9 +85,7 @@ WPagerEEGLibeep::~WPagerEEGLibeep() ...@@ -84,9 +85,7 @@ WPagerEEGLibeep::~WPagerEEGLibeep()
int status = eep_fclose( m_eeg ); int status = eep_fclose( m_eeg );
if( status != CNTERR_NONE ) if( status != CNTERR_NONE )
{ {
std::ostringstream stream; std::cout << getFilename() << " could not be closed. Libeep status code: " << status << std::endl;
stream << getFilename() << " could not be closed. Libeep status code: " << status;
throw WDHIOFailure( stream.str() );
} }
} }
...@@ -189,4 +188,3 @@ std::string WPagerEEGLibeep::getChannelLabel( std::size_t channelID ) const ...@@ -189,4 +188,3 @@ std::string WPagerEEGLibeep::getChannelLabel( std::size_t channelID ) const
} }
#endif // WEEP_ENABLED #endif // WEEP_ENABLED
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