[gameprogrammer] weird problem passing ofstream as parameter

  • From: Roger Durañona Vargas <luo_hei@xxxxxxxx>
  • To: gameprogrammer@xxxxxxxxxxxxx
  • Date: Wed, 17 Feb 2010 09:02:26 +0000

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?

-- 
Roger D. Vargas
Gentoo Linux 2008.0
Using Gentoo Linux 2008.0, Ogre 1.6.2, fglrx
Powered by Core 2 E4500 2.2GHz, 2Gb RAM, Radeon HD4770
http://gpnfn.blogspot.com, The news for game programming newbies


                
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

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


Other related posts: