Remove unpackHack from smallVector
authorNicholas Ormrod <njormrod@fb.com>
Thu, 20 Apr 2017 17:07:21 +0000 (10:07 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 20 Apr 2017 17:19:55 +0000 (10:19 -0700)
commit049e3d99a99a1567574fb57c34280565eaf4ff1e
treeb3cdcce18a38a2a4c5056217160d58acc54d5ec6
parentc6cf2b08794bd9d4c6b92f65267d7150aaa081b2
Remove unpackHack from smallVector

Summary:
This change removes the unpackHack function from small_vector, which was blocking ##-Waddress-of-packed-member## from being enabled. The fix is split the pointer-getting non-const ##getCapacity## into a normal getter and setter.

(lithium is flakey, according to continuous, and is push-blocking)

Reviewed By: yfeldblum

Differential Revision: D4918188

fbshipit-source-id: 435e030ad659f5dc9c42d90e9bfee9ca564a120a
folly/small_vector.h