Jul 10, 2016

[C++] template argument does not consider derivitives

Member_Detector c-function-overload-resolution
template<typename T, T none_type>
struct Test;

struct Base{};
struct Derive{};


Derive d;


C<Base*, &d> error; // This will cause error.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.