smeenai added inline comments.

================
Comment at: include/functional:1393
+public:
+    virtual ~bad_function_call() _NOEXCEPT;
+
----------------
EricWF wrote:
> What's the rationale for making the dtor out-of-line? Couldn't we just use 
> `what()` as the key function?
We could, but this way it's consistent with all the other exception classes.


================
Comment at: src/functional.cpp:11
+#include "__config"
+#ifdef _LIBCPP_ABI_BAD_FUNCTION_CALL_KEY_FUNCTION
+
----------------
EricWF wrote:
> Nit, please put the guard inside of the namespace at the smallest possible 
> scope.
> 
> Also there is no need to manually include `__config` before including 
> `functional`.
Will do.


https://reviews.llvm.org/D27387



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to