[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] [c++] nedarve fra stringstream



On Thu, 09 Aug 2007 14:45:48 +0200 =?windows-1252?Q?Kristian_N=F8rgaard?= wrote:

> Problem 2:
> Log idéen giver mest mening hvis LogUnit objektet kan have subclasser 
> der opfører sig anderledes, f.eks skriver til en fil i stedet for stdout.
> Men g++ giver ikke lov til at en factorymetode returnerer en LogUnit, 
> kun en LogUnit pointer, og så ryger idéen med at LogUnit er et 
> midlertidigt object som destrueres efter liniens udførelse.
>
> Hvordan kan jeg opnå det ønskede?

Vil det løse problemet hvis du returnere en auto_ptr til objectet?

-- 
41 6E 64 65 72 73 


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2007-09-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *