bd524bd6e8
Summary: The C++ standard requires that when a function is used in a template it's prototype needs to be defined not only before the template specialization, but also before the template itself. Because of that one needs to (in certain compilers) be aware of the proper order of includes so that the function prototype is defined before the JSCExecutor.h is included. As a workaround the toValue might be written as a template (ValueEncoder<T>::toValue) defined in JSCExecutor.h instead of being an non-existing symbol. Thanks to that the JSCExecutor.h does not have to be included before the specialization of the ValueEncoder template. Reviewed By: mhorowitz Differential Revision: D4182724 fbshipit-source-id: 9bdf239ae66ef7a7d2c82daf7db5926472687bde |
||
---|---|---|
.. | ||
CSSLayout | ||
cxxreact | ||
inspector | ||
jschelpers | ||
microprofiler |