Boost logo

Boost Users :

Subject: Re: [Boost-users] boost.multi_index & IPC
From: Joaquín M LópezMuñoz (joaquin_at_[hidden])
Date: 2012-04-09 12:21:24


陈海峰 <chenhf2010 <at> qq.com> writes:

>
> std::vector<quote> result;
>
> BOOST_FOREACH(const quote& q, idx_sortbyprice)
>
> {
>
> int kind = q.kind;
>
> if (kind == 1 || kind == 11)
>
> {
> // std::cout << "市场" << q.market << ",类别" << q.kind << >
        ", " << q.secname << ",最新价" << q.price << std::endl;
>
>
> result.push_back(q);  
> this statement will compile error, why? how to write?

Can you post the exact compiler error you're getting.

Thank you,

Joaquín M López Muñoz
Telefónica Digital


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