[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [paragui-users] Does this mean the new homepage is up?
From: |
Alexander Pipelka |
Subject: |
Re: [paragui-users] Does this mean the new homepage is up? |
Date: |
16 Apr 2002 11:05:32 +0200 |
Am Die, 2002-04-16 um 05.48 schrieb Andrew Ford:
> Okay, take this for instance:
>
> in addition to:
>
> bool PG_FileArchive::Exists(const char *filename);
>
> we could easily add:
>
> inline bool PG_FileArchive::Exists( std::string
> &filename )
> {
> return Exists( filename.c_str() );
> }
>
> As a convenience for string users.
Ok. I don't see any problems.
But maybe the param should be "const std::string&".
> Now that I'm looking at the interface, something else
> that could be done (but I could easily see why someone
> wouldn't want to add it to the interface) is something
> like:
>
> template <typename T> void PG_File::write( T *buffer,
> unsigned int numOfObjects )
> {
> write( static_cast< void * >( buffer ), sizeof( T ),
> numOfObjects );
> }
Uhh. I guess this would be a bit too much convenience. :))
I think the user should do the cast.
Alex