cpp: Fix implementations of "list<bool>"
authorDavid Reiss <dreiss@apache.org>
Tue, 10 Feb 2009 21:38:48 +0000 (21:38 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 10 Feb 2009 21:38:48 +0000 (21:38 +0000)
commit035aed90c0a7e54cd9e0f2ac70dc7c1bb303a4b0
tree19d48f30b2c1937c378a230445fbf16732d220ef
parent7d3df42bb5eefc740724537d802597668ab1a955
cpp: Fix implementations of "list<bool>"

TProtocol::readBool expects a "bool&" as its argument, but "list<bool>"
is implemented as "vector<bool>", which is a specialization of vector
that uses a custom structure as its reference type.  Therefore, we need
to overload TProtocol::readBool for std::vector<bool>::reference.
This function is provided as a non-virtual for efficiency since it is
highly unlikely that any subclass will want to override it.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@743112 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/protocol/TProtocol.h