Make dynamic::object callable with initializer lists
authorJordan DeLong <jdelong@fb.com>
Mon, 17 Dec 2012 19:12:47 +0000 (11:12 -0800)
committerJordan DeLong <jdelong@fb.com>
Sat, 19 Jan 2013 00:37:10 +0000 (16:37 -0800)
commitc1e5151608785e0102f71eb7de9ce2bafc822bff
treed767c7c1508226f68837d9e06db48064ee3ab160
parent3692ff51d35e5e38fde557d61750c884340ec2fe
Make dynamic::object callable with initializer lists

Summary:
Using perfect forwarding here prevents the ability to create
dynamic arrays.

Test Plan: Added unit test case that compiles now with this.

Reviewed By: tudorb@fb.com

FB internal diff: D660662
folly/dynamic-inl.h
folly/dynamic.h
folly/test/DynamicTest.cpp