[gameprogrammer] Re: weird problem passing ofstream as parameter

  • From: Brian Barrett <brian.ripoff@xxxxxxxxx>
  • To: gameprogrammer@xxxxxxxxxxxxx
  • Date: Wed, 17 Feb 2010 14:13:07 +0000

Hi.

What have you tried? http://whathaveyoutried.com

I'll give you a hint: what does it mean to create a copy of a file stream?

On 17 February 2010 09:02, Roger Durañona Vargas <luo_hei@xxxxxxxx> wrote:
> Can somebody explain me if there is some special requirement to pass a
> file as parameter?
> I have this:
> class EntityManager {
> public:
> saveEntities(ofstream savefile);
> }
>
>
> But this produces a lot of errors with gcc, saying that something is
> private. any idea?
>

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: