Boost logo

Boost :

From: Allen Bierbaum (allenb_at_[hidden])
Date: 2003-08-23 15:37:52


I just tried to use boost::variant with the HEAD version of boost and I
am getting multiply defined symbols in empty.hpp. (gcc 3.2 on Linux)

I fixed it by adding "inline" to the two non-template methods (see below):

inline bool operator==(const empty&, const empty&)
{
     return true;
}

inline bool operator<(const empty&, const empty&)
{
     return false;
}

Is this a bug in the code or is there some other way to wrok around it?

Thanks,
Allen

-- 
-- Allen Bierbaum                         allenb_at_[hidden]
-- Research Assistant and PhD Candidate
-- VR Juggler Team                              www.vrjuggler.org
-- Virtual Reality Applications Center       www.vrac.iastate.edu

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk