编译器显示:[Warning]frienddeclaration'std::istream&operator>>(std::istream&,Array&)'declaresanon-templatefunction[-Wnon-template-friend][Warning]frienddeclaration'std::ostream&operator<<(std::ostream&,constArray&)'declaresanon-templatefunction[-Wnon-template-friend] 代码如下: #include usingnamespace...
[Warning] friend declaration 'std::ostream& operator<<(std::ostream&, const Array<T, n>&)' declares a non-template function [-Wnon-template-friend] 代码如下:#include<iostream> using namespace std; template<class T,int n> class Array...
but the context type 'AttendanceDbContext' only declares a parameterless constructor. This means that the configuration passed to AddDbContext will never be used. If configuration is passed to AddDbContext, then 'AttendanceDbContext' should declare a constructor that accepts a DbContextOptions<Attenda...