I NEED HEMP PLEASEeeeeeeeeeeeeee
I use multi array boost
But I have problem : - I can't declare a multi array as a member variable , I have the error: unexpected "error C2321: syntax error : unexpected 'boost::extents"
When I don' write the keyword "typdef" I have more mistakes.
//Boost library
#include
You will get a better response if you use an appropriate subject line: [multi_array] error using vc7.1 and boost 1.33.1 Jeff Flinn
On 4/5/06 4:48 PM, "Karim Bakir"
I use multi array boost
But I have problem : - I can't declare a multi array as a member variable , I have the error: unexpected "error C2321: syntax error : unexpected 'boost::extents" When I don' write the keyword "typdef" I have more mistakes.
The actual problem isn't with multi-array; it's that you can't write a class.
//Boost library #include
#include <cassert> //Name Space using namespace std; using namespace boost; class MyClass { typedef boost::multi_array array_type_2d; public:
MyClass(); virtual ~MyClass(); array_type_2d M(boost::extents[10][10]);
};
[TRUNCATE]
Data-based members generally cannot be initialized at the declaration level
within the class definition. (The exception is for static data member
constants of an integer or enumeration type, and they must use the "= Value"
syntax.) You should initialize non-static data members within each
constructor, hopefully within the initializer list, or within the body if
you must. Static data members that don't meet the exception given above
have to be initialized like a regular variable, but outside the class
definition.
//========================================================================
class MyClass2
{
boost::multi_array
participants (4)
-
Bronek Kozicki
-
Daryle Walker
-
Jeff Flinn
-
Karim Bakir