From: Alberto Bertogli Date: Mon, 3 Oct 2005 07:32:09 +0000 (+0000) Subject: Prototipo de karatsuba() con const y &. X-Git-Tag: Entrega_1~51 X-Git-Url: https://git.llucax.com/z.facultad/75.29/dale.git/commitdiff_plain/9d07dc12cd46891ac0caba826edfbd0cc42104e7?ds=inline Prototipo de karatsuba() con const y &. --- diff --git a/src/number.h b/src/number.h index 2048d57..3f8552b 100644 --- a/src/number.h +++ b/src/number.h @@ -291,7 +291,7 @@ std::pair< number< N, E >, number< N, E > > number< N, E >::split() const // es el algoritmo de divisiĆ³n y conquista, que se llama recursivamente template < typename N, typename E > -number < N, E > karatsuba(number< N, E > u, number< N, E > v) +number < N, E > karatsuba(const number< N, E > &u, const number< N, E > &v) { typedef number< N, E > num_type;