Hi guys, i am a beginer in C++, i am developing a Managed C++ wrapper for an existing native C++ dll. The native C++ dll uses std:: pair<unsigned long, boost::multi_array<double,2>> as input.I tried creating a multiarray object and got the error when i tried assigining it to "second" property of pair object. Please help. I have put the code below.

"Assertion Failed!"
multi_array_ref.hpp:487:
`std::equal(other.shape(),other.shape()+this->num_dimensions(),
this->shape())'



std:: pair<unsigned long, boost::multi_array<double,2>> dataPointNative;
dataPointNative.first = 100;
KWExtrinsicModuleStructures::Matrix^ rMatrix = dpt->Value;
boost::multi_array<double,2> rachetmatrix(boost::extents[3][3]);
for(int i=0;i<rMatrix->Rows;i++)
{
for(int j=0;j<rMatrix->Columns;j++)
{
rachetmatrix[i][j] = 3.1417;

}
}
dataPointNative.second = rachetmatrix; //Line where i get the error.

Thanks in Advance.
Naresh