Enable Elf::at<T> only for POD data types
authorPeter Griess <pgriess@fb.com>
Fri, 22 Mar 2013 15:12:30 +0000 (08:12 -0700)
committerOwen Yamauchi <oyamauchi@fb.com>
Wed, 27 Mar 2013 21:40:35 +0000 (14:40 -0700)
commitd7050ad5481a1a6dc958816655a4535cd2fd2df2
tree47c58bef3146df5d8d2511b2d6868ac6d636c6aa
parenta6198d25683b47837948d8f1e9f60337470d5531
Enable Elf::at<T> only for POD data types

Summary:
- Make sure that the utility function Elf::at<T> only works for POD
datatypes, as it uses reinterpret_cast<T>.

Test Plan: - Unit tests

Reviewed By: simpkins@fb.com

FB internal diff: D748314
folly/experimental/symbolizer/Elf.h