The following piece of code does not compile:
#include <valarray>
int main()
{
std::valarray<std::valarray<int>> a;
std::valarray<std::valarray<int>> b;
//std::valarray<std::valarray<bool>> c;
std::valarray<bool> c;
c = (a == b);
return 0;
}
Neither of the declarations of c compile. Is it allowed to use valarray in the above demonstrated manner or are there restrictions on how it should be used.