Boost logo

Boost :

Subject: Re: [boost] Intel 14.0.1 error with boost::bind
From: Peter Dimov (lists_at_[hidden])
Date: 2014-07-01 05:39:41


Aniket Pugaonkar wrote:
> test.cpp(16): error: expression must have a constant value
> if ((info1.start < info2.end) && (info2.end > info1.end) && (info1.end
> < info2.start) )
>

...

> Now, if I compile it without " -mmic " flag, then there is no compiler
> errors.

This looks like a compiler bug, in that "info1.start<...>" is interpreted as
a member template, with an argument of "info2.end) && (info2.end". You may
try rewriting the condition to use > instead of < and see if that helps.


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