конструкторы копирования попадают в подмножество конструкторов-шаблонов?
                  
                  
                  Пример:
                  
                  
                  template<typename T>
                  
                  
                  class A {
                  
                  
                  public:
                  
                  
                      template<template U>
                  
                  
                      A(const A<U> &a);
                  
                  
                  
                  
                  
                      template<template U>
                  
                  
                      A(A<U> &&a);
                  
                  
                  }
                  
                  
                
12.8.2 A non-template constructor for class X is a copy constructor if its first parameter is of type X&, const X&, volatile X& or const volatile X&, and either there are no other parameters or else all other parameters have default arguments (8.3.6)
Обсуждают сегодня