Closed Warchant closed 5 years ago
Thanks, @Warchant.
GCC requires a template keyword in that context; The issue is not really related to DI.
template <typename... T>
auto useDerived(){
return boost::di::bind<Base*[]>.template to<T...>();
}
The following work fine in both GCC and clang -> https://godbolt.org/z/WlHC3B
Expected Behavior
clang, apple clang and gcc should compile this code:
https://godbolt.org/z/0SQkcR
Actual Behavior
clang compiles, gcc does not
Steps to Reproduce the Problem
Just look at https://godbolt.org/z/0SQkcR
Specifications