| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Alex Burton | Date: | October 6 2006 10:19pm |
| Subject: | Re: mysql++ memory usage | ||
| View as plain text | |||
Warren, Rather than doing a special case for VC++, could you just use the default constructor for std::ostream and then call init as before ? The only change being std::ostream(0) becomes std::ostream() The code in the default constructor for basic_ofstream would be worth a look in the relavent implementations of std c++ library, just do whatever they are doing ? Alex On 07/10/2006, at 6:39 AM, Warren Young wrote: > Matt Dargavel wrote: >> you shouldn't really pass a member variable object into the >> base class constructor as it won't have been initialised yet. The >> MS C++ >> std library implementation allows you to do what I believe the >> original >> intention was, as follows: > > Good work, you two. > > I think what I'm going to have to do is special-case VC++ here. > While RAII has its points, I'm nervous about passing an > uninitialized object into the base class ctor. I'll get something > into svn tonight, and you all can comment on it if you care to. > > -- > MySQL++ Mailing List > For list archives: http://lists.mysql.com/plusplus > To unsubscribe: http://lists.mysql.com/plusplus? > unsub=alexibu@stripped >
| Thread | ||
|---|---|---|
| • mysqlpp and wchar_t problem | gani b. c. | 2 Oct |
| • Re: mysqlpp and wchar_t problem | Warren Young | 2 Oct |
| • mysql++ memory usage | Alex Burton | 3 Oct |
| • Re: mysql++ memory usage | Warren Young | 4 Oct |
| • Re: mysql++ memory usage | Bill K | 4 Oct |
| • Re: mysql++ memory usage | Alex Burton | 4 Oct |
| • Re: mysql++ memory usage | Warren Young | 4 Oct |
| • Re: mysql++ memory usage | Bill K | 5 Oct |
| • Re: mysql++ memory usage | Warren Young | 5 Oct |
| • Re: mysql++ memory usage | Alex Burton | 6 Oct |
| • Re: mysql++ memory usage | Alex Burton | 6 Oct |
| • RE: mysql++ memory usage | Matt Dargavel | 6 Oct |
| • Re: mysql++ memory usage | Warren Young | 6 Oct |
| • Re: mysql++ memory usage | Alex Burton | 7 Oct |
| • Re: mysql++ memory usage | Warren Young | 7 Oct |
| • Re: mysql++ memory usage | Matt Dargavel | 7 Oct |
| • Re: mysql++ memory usage | Warren Young | 12 Oct |
| • Exporting classes | Matt Dargavel | 19 Oct |
| • Re: Exporting classes | Warren Young | 20 Oct |
| • RE: Exporting classes | Matt Dargavel | 20 Oct |
| • Re: mysql++ memory usage | Carlos Flores | 4 Oct |
| • Re: mysqlpp and wchar_t problem | gani b. c. | 3 Oct |
