Topic: implicit memberwise funxns


Author: jam <farid.mehrabi@gmail.com>
Date: Mon, 25 Jun 2007 11:21:31 CST
Raw View
consider these functions:

 t& fu(t&);
 t& fb(t&,t&);

the argument to these functions roughly correspond to those of defult
constructor(the case with fu) who operates on a single object,and the
copy-ctor/operator= (the case with fb) which operate on two
objects(this and input) ,however it is not possible to force compiler
to generate an implicit memberwise version of 'fu' nor 'fb' for for
any user defined class  just as it does for ctors or assignment
operator.Is there any tendency to design a syntax for this type of
generic programing under C++?

thanks in advance,
FM.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]