Commit 7bca968ec2404e6916579edf7ff3ba0fe0d41b24

Authored by David Mayerich
1 parent a2811d32

fixed nvcc str() problem in vec3

Showing 1 changed file with 2 additions and 4 deletions   Show diff stats
@@ -5,9 +5,7 @@ @@ -5,9 +5,7 @@
5 #include <stim/cuda/cudatools/callable.h> 5 #include <stim/cuda/cudatools/callable.h>
6 #include <cmath> 6 #include <cmath>
7 7
8 -#ifndef __CUDACC__  
9 #include <sstream> 8 #include <sstream>
10 -#endif  
11 9
12 10
13 namespace stim{ 11 namespace stim{
@@ -247,7 +245,7 @@ public: @@ -247,7 +245,7 @@ public:
247 return false; 245 return false;
248 } 246 }
249 247
250 -#ifndef __CUDACC__ 248 +//#ifndef __CUDACC__
251 /// Outputs the vector as a string 249 /// Outputs the vector as a string
252 std::string str() const{ 250 std::string str() const{
253 std::stringstream ss; 251 std::stringstream ss;
@@ -265,7 +263,7 @@ std::string str() const{ @@ -265,7 +263,7 @@ std::string str() const{
265 263
266 return ss.str(); 264 return ss.str();
267 } 265 }
268 -#endif 266 +//#endif
269 267
270 size_t size(){ return 3; } 268 size_t size(){ return 3; }
271 269