Boost logo

Boost Users :

Subject: Re: [Boost-users] Please help with enable_if problem
From: John Dlugosz (JDlugosz_at_[hidden])
Date: 2010-04-14 12:07:39


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Steven Watanabe
> Sent: Tuesday, April 13, 2010 8:06 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] Please help with enable_if problem
>
> AMDG
>
> John Dlugosz wrote:
> > I'm getting tons of this from Microsoft's compiler:
> >
> > error C2893: Failed to specialize function template
> 'enable_if<boo...
> >
>
> Without the actual error message, I'm not sure I can help much.

error C2893: Failed to specialize function template 'enable_if<boost::mpl::and_<std::tr1::is_base_of<chronology::generic_linear_time_ntbase,T>,boost::mpl::or_<chronology::is_dimensional_time<D>,std::tr1::is_same<chronology::duration,D>,std::tr1::is_same<chronology::linear_duration,D>>>,T>::type &chronology::operator +=(T &,const D &)'

> This can't be the real code, because it wouldn't compile
> as a member because it takes two arguments, and wouldn't
> compile as a non-member, because it uses "this."

Ah, yes, the code is wrong. Normally I'll start to see errors in the body as normal errors once it instantiates. Changing the line to "return left;" doesn't change the error.

TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.


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