fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template<typename ... B>
  5. struct Merged : B...
  6. {
  7. template <typename ... T>
  8. Merged(T && ... t) : B(std::forward<T>(t))...
  9. { }
  10.  
  11. using B::operator()...;
  12. };
  13.  
  14. int main() {
  15. // your code goes here
  16. return 0;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:11:21: error: parameter packs not expanded with ‘...’:
   using B::operator()...;
                     ^
prog.cpp:11:21: note:         ‘B’
prog.cpp:11:22: error: expected ‘;’ before ‘...’ token
   using B::operator()...;
                      ^~~
prog.cpp:11:22: error: expected unqualified-id before ‘...’ token
stdout
Standard output is empty