Strange Multiple Definitions Error
<p>I have something like this in my code:</p>

<pre><code>namespace A {
namespace B {

void
GetLine(std::istream&amp; stream, std::string&amp; line)
{
    line.clear();
    while (stream.good()) {
        std::getline(stream, line);
        boost::trim(line);
        if (not line.empty()) break;
    }
    boost::to_upper(line);
}

}
}
</code></pre>

<p>And I get multiple definition error whenever I call <code>A::B::GetLine</code>. Any Ideas why?</p>

<p>(The code is at work, so I will try to give out specific snippets if you need more info, but I can't just pase the entire code here).</p>
