| 159 | |
| 160 | template<class T> |
| 161 | inline compute::function<T(T)> make_negate_function() |
| 162 | { |
| 163 | BOOST_COMPUTE_FUNCTION(T, negate, (const T x), |
| 164 | { |
| 165 | return -x; |
| 166 | }); |
| 167 | |
| 168 | return negate; |
| 169 | } |
| 170 | |
| 171 | BOOST_AUTO_TEST_CASE(test_templated_function) |
| 172 | { |
nothing calls this directly
no test coverage detected