471,873 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,873 software developers and data experts.

enum value not in scope inside class?

I try to compile the following:


class DerivationStatistics {
enum {MAX_LENGTH = 1000};

typedef boost::multi_array<unsigned, 3Array;
static Array(boost::extents[DUMMY_LAST_CAT][MAX_LENGTH][2])

The last line triggers the following compile error:
"error: 'DUMMY_LAST_CAT' was not declared in this scope"

How can I resolve this? Thanks.

Sep 27 '06 #1
1 4547
Got it, I just realized I shouldn't have the parenthesized values there
and must initialize the array in the implementation.


Sep 27 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Alexander Grigoriev | last post: by
20 posts views Thread by Glenn Venzke | last post: by
2 posts views Thread by Alex Feldman | last post: by
1 post views Thread by Vincent RICHOMME | last post: by
13 posts views Thread by toton | last post: by
34 posts views Thread by Steven Nagy | last post: by
9 posts views Thread by subramanian | last post: by
3 posts views Thread by dev_15 | last post: by
8 posts views Thread by oaksong | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.