6
6
#include < stdexcept>
7
7
#include < string>
8
8
#include < vector>
9
-
10
- #include < boost/config.hpp>
11
9
#include < memory>
12
-
13
- #ifndef BOOST_NO_VARIADIC_TEMPLATES
14
- #include < type_traits>
15
- #endif
10
+ #include < type_traits>
16
11
17
12
#include < cucumber-cpp/internal/CukeExport.hpp>
18
13
#include " ../Table.hpp"
@@ -43,10 +38,7 @@ class CUCUMBER_CPP_EXPORT MatchResult {
43
38
const match_results_type& getResultSet ();
44
39
void addMatch (SingleStepMatch match);
45
40
46
- #ifndef BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
47
- explicit
48
- #endif
49
- operator bool () const ;
41
+ explicit operator bool () const ;
50
42
51
43
private:
52
44
match_results_type resultSet;
@@ -139,13 +131,6 @@ class CUCUMBER_CPP_EXPORT BasicStep {
139
131
const T getInvokeArg ();
140
132
const InvokeArgs* getArgs ();
141
133
142
- #ifdef BOOST_NO_VARIADIC_TEMPLATES
143
- // Special case for zero arguments, only thing we bother to support on C++98
144
- template <typename Derived, typename R>
145
- static R invokeWithArgs (Derived& that, R (Derived::*f)()) {
146
- return (that.*f)();
147
- }
148
- #else
149
134
template <typename Derived, typename R, typename ... Args, std::size_t ... N>
150
135
static R invokeWithIndexedArgs (Derived& that, R (Derived::*f)(Args...), index_sequence<N...>) {
151
136
return (that.*f)(that.pArgs ->template getInvokeArg <typename std::decay<Args>::type>(N)...);
@@ -156,7 +141,6 @@ class CUCUMBER_CPP_EXPORT BasicStep {
156
141
that.currentArgIndex = sizeof ...(Args);
157
142
return invokeWithIndexedArgs (that, f, index_sequence_for<Args...>{});
158
143
}
159
- #endif
160
144
161
145
private:
162
146
// FIXME: awful hack because of Boost::Test
@@ -188,11 +172,7 @@ class CUCUMBER_CPP_EXPORT StepManager {
188
172
189
173
private:
190
174
// We're a singleton so don't allow instances
191
- StepManager ()
192
- #ifndef BOOST_NO_DELETED_FUNCTIONS
193
- = delete
194
- #endif
195
- ;
175
+ StepManager () = delete ;
196
176
};
197
177
198
178
static inline std::string toSourceString (const char * filePath, const int line) {
0 commit comments