H
holmescn
I wrote the code below:
#include <valarray>
using namespace std;
int main()
{
valarray<double> v0(10);
valarray<double> v1 = v0[slice(0,1,5)];
}
I compiled it with mingw 3.4.5 .but i have got an error said
slice_array 's constructor is private.
yes i know it .but valarray is his friend class.
and the code is works well in vc8
why is this happen?
is somebody meet this problem?how to solve it?
Thx!
#include <valarray>
using namespace std;
int main()
{
valarray<double> v0(10);
valarray<double> v1 = v0[slice(0,1,5)];
}
I compiled it with mingw 3.4.5 .but i have got an error said
slice_array 's constructor is private.
yes i know it .but valarray is his friend class.
and the code is works well in vc8
why is this happen?
is somebody meet this problem?how to solve it?
Thx!