title: Boost with CUDA
body: <p>I have been using Boost inside a Visual C++ CUDA project. I'm using <code>regex.hpp</code> inside a <code>.cu</code> file and it works fine including it this way:</p>
  
  <pre><code>#include &lt; boost / regex.hpp &gt;
  </code></pre>
  
  <p>Now, I need to use <code>abs.hpp</code>, which I'm including this way: </p>
  
  <pre><code>#include &lt; boost / ratio / detail / mpl / abs.hpp &gt;
  </code></pre>
  
  <p>and it fails while compiling. I'm using Windows 8 64-bits, Visual Studio 2012, Boost 1.53.0 and CUDA 5.5.</p>
  
  <p>I get this error only by putting this in my code: 
  <code>#include &lt; boost / ratio / detail / mpl / abs.hpp &gt;</code></p>
  
  <p>without using more instructions related with Boost. I have several <code>.cpp</code> and <code>.cu</code> files in my project. If I put that include in a <code>.cpp</code> file, it compiles fine. If I put that include in a <code>.cu</code>, this error appear:</p>
  
  <blockquote>
    <p>C:\Program Files (x86)\Microsoft Visual Studio
    11.0\VC\include\boost/ratio/detail/mpl/abs.hpp(68): error C2675: unary '-' : 'T' does not define this operator or a conversion to a type
    acceptable to the predefined operator</p>
  </blockquote>
  
  <p>Thanks for any help you can provide and sorry for my English, it's not my native language!</p>