error C2059: syntax error : 'generic'
<p>When I want to use boost library in my code, and I found an error:</p>

<pre><code>error C2059: syntax error : 'generic'
</code></pre>

<p>And this error is coming from the boost/filesystem/path.hpp, </p>

<pre><code>path generic() const
{
...
}
</code></pre>

<p>And I don't know how to solve it, I google it and it looks like I need to redefine it. But I really don't know how to do it.</p>