]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4376: clang cannot build Squid eCAP code
authorPatrick Welche <prlw1@cam.ac.uk>
Wed, 29 Jun 2016 17:24:24 +0000 (11:24 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 29 Jun 2016 17:24:24 +0000 (11:24 -0600)
commiteaba85cb18cb384105b97e20245db3ecf629efa8
tree47ac6f7b9d0df22c298222f251eac9f1a8fd4ac9
parent7001b3d7f5c72d6f7477f6472b529a9805d85d73
Bug 4376: clang cannot build Squid eCAP code

This change is not needed for libecap v1.0 that uses tr1::shared_ptr.
However, libecap is being updated to use std::shared_ptr. Once that
update is complete, Squid eCAP code will no longer compile because the
implicit conversion of shared_ptr to bool in tr1 was deemed dangerous
and, hence, made "explicit" when shared_ptr became standard. Unlike "if"
statements, "return" statements do not trigger an explicit conversion.
src/adaptation/ecap/ServiceRep.cc