aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-11-27 20:16:41 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-11-27 20:16:41 +0000
commit3fb5b01cf13d39995ab32ef25ec805fa8e1f7136 (patch)
tree2dcdd4556d1fe256387c2d3254abdb16207f1795
parent20f48f10ec8baac17c9faa470254f63880d91b63 (diff)
downloadpaludis-3fb5b01cf13d39995ab32ef25ec805fa8e1f7136.tar.gz
paludis-3fb5b01cf13d39995ab32ef25ec805fa8e1f7136.tar.xz
Let the compiler synthesise things
-rwxr-xr-xmisc/make_sr.bash32
1 files changed, 0 insertions, 32 deletions
diff --git a/misc/make_sr.bash b/misc/make_sr.bash
index fbc6734..dddd20e 100755
--- a/misc/make_sr.bash
+++ b/misc/make_sr.bash
@@ -189,11 +189,6 @@ while read a ; do
done
echo " );"
echo
- echo " ${a}(const ${a} & other);"
- echo
- echo " const ${a} & operator= (const ${a} & other);"
- echo
- echo " ~${a}();"
make_class_${a}
@@ -444,33 +439,6 @@ while read a ; do
echo "}"
echo
- echo "${a}::${a}(const ${a} & other) :"
- for (( k = 0 ; k < ${#want_keys[@]} ; k++ )) ; do
- echo -n " ${want_keys[${k}]}(other.${want_keys[${k}]})"
- if [[ $(( ${k} + 1 )) -lt ${#want_keys[@]} ]] ; then
- echo ","
- else
- echo
- fi
- done
- echo "{"
- echo "}"
- echo
-
- echo "const ${a} &"
- echo "${a}::operator= (const ${a} & other)"
- echo "{"
- for (( k = 0 ; k < ${#want_keys[@]} ; k++ )) ; do
- echo " ${want_keys[${k}]} = other.${want_keys[${k}]};"
- done
- echo " return *this;"
- echo "}"
-
- echo "${a}::~${a}()"
- echo "{"
- echo "}"
- echo
-
if [[ -n "${want_comparison_operators}" ]] ; then
if [[ "${want_comparison_operators}" == "all" ]] ; then