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