Permalink
Browse files

Compilation with Visual Studio 2010

  • Loading branch information...
1 parent 256c1bb commit 3dbb99f35849bc4a3c0a8b8da5cb123324cca4d5 @ddemidov committed Jun 26, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 examples/utests.cpp
View
@@ -25,11 +25,13 @@ bool run_test(const std::string &name, std::function<bool()> test) {
return rc;
}
+#ifdef VEXCL_VARIADIC_TEMPLATES
extern const char greater_body[] = "return prm1 > prm2 ? 1 : 0;";
UserFunction<greater_body, size_t(double, double)> greater;
extern const char pow3_body[] = "return pow(prm1, 3);";
UserFunction<pow3_body, double(double)> pow3;
+#endif
int main(int argc, char *argv[]) {
try {

0 comments on commit 3dbb99f

Please sign in to comment.