Skip to content

Commit 40fffd2

Browse files
committed
further ensure no 'assert' leakage
1 parent 97a134c commit 40fffd2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

inst/include/Rcpp/utils/tinyformat.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ namespace Rcpp {
136136
//------------------------------------------------------------------------------
137137
// Implementation details.
138138
#include <algorithm>
139-
#include <cassert>
139+
// #include <cassert>
140140
#include <iostream>
141141
#include <sstream>
142142

143-
#ifndef TINYFORMAT_ERROR
144-
# define TINYFORMAT_ERROR(reason) assert(0 && reason)
145-
#endif
143+
// #ifndef TINYFORMAT_ERROR
144+
// # define TINYFORMAT_ERROR(reason) assert(0 && reason)
145+
// #endif
146146

147147
#if !defined(TINYFORMAT_USE_VARIADIC_TEMPLATES) && !defined(TINYFORMAT_NO_VARIADIC_TEMPLATES)
148148
# ifdef __GXX_EXPERIMENTAL_CXX0X__
@@ -205,7 +205,7 @@ template<int n> struct is_wchar<wchar_t[n]> {};
205205
template<typename T, typename fmtT, bool convertible = is_convertible<T, fmtT>::value>
206206
struct formatValueAsType
207207
{
208-
static void invoke(std::ostream& /*out*/, const T& /*value*/) { assert(0); }
208+
static void invoke(std::ostream& /*out*/, const T& /*value*/) {}
209209
};
210210
// Specialized version for types that can actually be converted to fmtT, as
211211
// indicated by the "convertible" template parameter.

0 commit comments

Comments
 (0)