Boost logo

Boost Users :

Subject: Re: [Boost-users] using boost::is_same with enums
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2011-05-27 05:52:11


Hi!

Sorry for top-post but my mailer does not correctly reproduce the initial
email in the reply.

Why do you need boost::is_same in this context at all, if you can compare
the values directly????

This should work:
        BOOST_STATIC_ASSERT((P==eDivide && Q==eMinus) || (P==eMult &&
Q==ePlus));

With Kind Regards,
Ovanes

On Fri, May 27, 2011 at 11:22 AM, <przemyslaw.sliwa_at_[hidden]>wrote:

> *[...]*



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net