support -nan in conversion
authorFan Guo <fguo@fb.com>
Mon, 10 Sep 2012 17:08:46 +0000 (10:08 -0700)
committerJordan DeLong <jdelong@fb.com>
Mon, 17 Sep 2012 01:30:58 +0000 (18:30 -0700)
commit78ee28054f94760f2f1d27380c452ee964b427b4
tree308258d8de153d17e2771a6c3e832ecb15c3dff5
parent8a64dcbdae49bce3ba56bb78c67562549bc9cf8c
support -nan in conversion

Summary:
Folly supports -inf and nan but not -nan, instead it raised unexpected exceptions not handled in the upstream.

This diff is separated out from D569816 -- Diff1.

Test Plan: std::isnan(folly::to<double>(-nan))

Reviewed By: tudorb@fb.com

FB internal diff: D569939
folly/Conv.h