[Bug c++/79094] Pack expansion in using-declaration rejects an attempt to inherit a pack of constructors
lucdanton at free dot fr
gcc-bugzilla@gcc.gnu.org
Fri Feb 3 14:41:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79094
lucdanton at free dot fr changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lucdanton at free dot fr
--- Comment #1 from lucdanton at free dot fr ---
Another case that wants a dependent type expanded alongside the bases, but
where
the declarator does not name a constructor:
template<typename A, typename B>
struct unvariadic: private A, private B {
// okay, provided A and B each declare appropriate
// target_type and operator target_type() members
using A::operator typename A::target_type,
B::operator typename B::target_type;
};
template<typename... Bases>
struct variadic: private Bases... {
// error: parameter packs not expanded with '...':
using Bases::operator typename Bases::target_type...;
};
More information about the Gcc-bugs
mailing list