[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
structs and STL stack
From: |
Christian Christmann |
Subject: |
structs and STL stack |
Date: |
Fri, 17 Mar 2006 17:51:28 +0100 |
User-agent: |
Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) |
Hi,
I'd like to store structs on an STL stack.
Here is a piece of my code:
#inclue <stack>
...
struct storeInfo {
int a;
} structInfo;
stack< storeInfo > itStack;
...
When compiling with gcc 3.3.2, I get the error
message:
error: template-argument `areg_action(burm_state*,
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>)::storeInfo' uses local type `areg_action(burm_state*,
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>)::storeInfo'
error: template argument 2 is invalid
error: ISO C++ forbids declaration of `itStack' with no type
What is wrong?
Thank you.
Chris
- structs and STL stack,
Christian Christmann <=
- Re: structs and STL stack, red floyd, 2006/03/17
- Re: structs and STL stack, Christian Christmann, 2006/03/17
- Re: structs and STL stack, red floyd, 2006/03/17
- Re: structs and STL stack, Thomas Maeder, 2006/03/20
- Re: structs and STL stack, red floyd, 2006/03/17
- Re: structs and STL stack, Christian Christmann, 2006/03/17
- Re: structs and STL stack, Thomas Maeder, 2006/03/18