[Genabel-commits] r1957 - pkg/MixABEL/src/MXlib
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri May 1 14:02:40 CEST 2015
Author: lckarssen
Date: 2015-05-01 14:02:40 +0200 (Fri, 01 May 2015)
New Revision: 1957
Modified:
pkg/MixABEL/src/MXlib/exception.cpp
Log:
Remove one of the PrintWhat() functions in MixABEL exception.cpp and replace indirect call to std::cerr with a call to Rcpp::Rcerr. This removes the functionality that allows PrintWhat() to print to other streams. But since this function is not used, I don't think it'll be a problem.
This should have been part of r1955.
Modified: pkg/MixABEL/src/MXlib/exception.cpp
===================================================================
--- pkg/MixABEL/src/MXlib/exception.cpp 2015-05-01 11:57:06 UTC (rev 1956)
+++ pkg/MixABEL/src/MXlib/exception.cpp 2015-05-01 12:02:40 UTC (rev 1957)
@@ -1,5 +1,5 @@
-#include "exception.h"
#include <sstream>
+#include "exception.h"
namespace exc
{
@@ -16,14 +16,9 @@
void exception::PrintWhat() const
{
- PrintWhat(std::cerr);
+ Rcpp::Rcerr << what();
}
- void exception::PrintWhat(std::ostream& where) const
- {
- where << what();
- }
-
const char* exception::what() const throw()
{
std::stringstream ss;
More information about the Genabel-commits
mailing list