|
-
July 10th, 2002, 11:21 AM
#1
Multi dimensional vector declaration
hi everybody,
i am back with my vector problems again.
This time i am trying to declare a 3-dimesional vector variable.
when i declare a 2-dimensional vector with
std::vector< std::vector<float> > , there are no problems.
But when i make it std::vector< std::vector< std::vector<float> > > , my VC++ compiler keeps giving me about 60 lengthy warnings.
Does anybody have a remedy to this problem? Please help me.
Thank you.
-- pramod
-
July 10th, 2002, 12:10 PM
#2
-
July 10th, 2002, 12:30 PM
#3
You can try "#pragma" to diable that warning message:
Code:
#pragma warning(disable:4786)
#include < vector >
replace 4786 with your warning number (but I assume that is the warning number you are getting).
-
July 10th, 2002, 12:55 PM
#4
The #pragma idea doesn't seem to be working in my case.
I have around 10 files in my project(.h and .cpp). Is there a specific location where the preprocessor directive is to be placed for it to work? The errors do not seem to stop even if the directive is directly above the 3-dimensional vector declaration.
If that is not the problem, could there be something wrong with my compiler build options??
-- pramod
-
July 10th, 2002, 01:05 PM
#5
Try placing the directive in ur .cpp files, above your #includes
-
July 10th, 2002, 01:52 PM
#6
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|