Inheritance // expected class-name before '{' token

Hey everyone,

am currently working on a small assignment in which i m goin to implement a simple streambuf derived class producing rnd numbers. my first and foremost problem is the g++ error msg from the title that i get when i try to compile the class with the following header
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef INCLUDED_RANDBUFFER_
#define INCLUDED_RANDBUFFER_

#include <streambuf>

class randbuffer : public streambuf
{
    int d_min;
    int d_max;
    char* d_buffer;

  public:
    randbuffer(int max, int min, unsigned seed);
  private:
    int underflow();
    
};

#endif 


i m not getting what is wrong with my syntax and start feeling a bit stupid. i ve mindlessly stared at the piece of code for about 1 1/2 hours and am only wasting time missing the obvious, i feel. any help and input is much appreciated! thanks a lot, jaqq
You need to properly scope streambuf since it is in the standard namespace.
derp. and a bad one, too. thanks though
Topic archived. No new replies allowed.