On Sunday, 13 September 2015 at 08:26:55 UTC, Alexandru Ermicioi wrote:
Hello,

Given:

class SomeClass {

    public {
        void someSimpleMethod() {}

        template setOfTemplatedMethods(Type) {
            void templatedMethodOne() {}
            void templatedMethodTwo() {}
        }
    }
}

Is there a way to detect at compile time if a member of class/struct is a template? (in the example above, if setOfTemplatedMethods is a template).

You can use __traits(isTemplate, <symbol>).

Reply via email to