Unable to define boost::regex as private variable
<p>In the below code, i get error. What am i doing?</p>

<p>regex.cpp:11: error: expected identifier before string constant</p>

<p>regex.cpp:11: error: expected ‘,’ or ‘...’ before string constant</p>

<pre><code>#include &lt;boost/regex.hpp&gt;
#include &lt;iostream&gt;
#include &lt;string&gt;


class RH
{
public:
    bool  matches(const std::string &amp; str);
private:
    boost::regex regex_("\\d:\\d-\\d:\\d"); // this is where error points to
};
</code></pre>
