avoid Most Vexing Parse by using static_cast
Summary: There is a Most Vexing Parse problem in `folly/MapUtil.h`: ``` xplat/folly/MapUtil.h:44:75: error: expected expression return (pos != map.end()) ? (pos->second) : M(std::forward<Value>(dflt)); ^ ``` Fix the issue by replacing paren-init with `static_cast`. Reviewed By: yfeldblum, ispeters, ot Differential Revision: D26610359 fbshipit-source-id: 89842b9b68cebaaab43ea5f82abe7e500f98ff2c
Showing
Please register or sign in to comment