Boost logo

Boost :

From: Joel de Guzman (djowel_at_[hidden])
Date: 2003-05-03 22:32:16

Justin M. Lewis wrote:

> A little bit of an overly simple example. How about something more
> like
> void MyGetCWD(c_out<std::string> cwd)


> Or, how about,
> void GetFileName(c_in_out<std::string> path, const std::string
> &filter) {

Gosh!, I can't resist... the API above is poor style, AFAICT.
No wonder you are having tons of problems.

You should just return the string. I suggest that you take a peek
at the boost filesystem library for better API designs. Specifically:

Joel de Guzman
joel at

Boost list run by bdawes at, gregod at, cpdaniel at, john at