diff options
author | 2006-11-27 20:16:41 +0000 | |
---|---|---|
committer | 2006-11-27 20:16:41 +0000 | |
commit | 3fb5b01cf13d39995ab32ef25ec805fa8e1f7136 (patch) | |
tree | 2dcdd4556d1fe256387c2d3254abdb16207f1795 /misc | |
parent | 20f48f10ec8baac17c9faa470254f63880d91b63 (diff) | |
download | paludis-3fb5b01cf13d39995ab32ef25ec805fa8e1f7136.tar.gz paludis-3fb5b01cf13d39995ab32ef25ec805fa8e1f7136.tar.xz |
Let the compiler synthesise things
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/make_sr.bash | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/misc/make_sr.bash b/misc/make_sr.bash index fbc6734cc..dddd20e69 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 |