10 Apr
2012
10 Apr
'12
8:08 a.m.
On Mon, 09 Apr 2012 14:44:10 +0200, 陈海峰
struct quote { public: int market; int kind; shm_string seccode; shm_string secname; float price; float zf;
quote(int market_, int kind_, const char* seccode_, const char_allocator& a, const char* secname_, const char_allocator& b, float price_, float zf_): market(market_),kind(kind_), seccode(seccode_, a), secname(secname_, b), price(price_), zf(zf_) {} };
std::vector<quote> result; result.push_back(q); this statement will compile error, why? how to
Unless I miss something in modern STL, you need copy constructor for quote.