mirror of https://github.com/CGAL/cgal
add a template version of the constructor
This commit is contained in:
parent
65b10f226a
commit
ee0ec71857
|
|
@ -46,51 +46,15 @@ public:
|
||||||
: mp()
|
: mp()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Note : should the copy-ctor be allowed at all ? [Sylvain Pion]
|
// Note : should the copy-ctor be allowed at all ? [Sylvain Pion]
|
||||||
BigIntRep(const BigIntRep& z) : RCRepImpl<BigIntRep >(), mp(z.mp)
|
BigIntRep(const BigIntRep& z) : RCRepImpl<BigIntRep >(), mp(z.mp)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
BigIntRep(signed char c)
|
template <class T>
|
||||||
|
BigIntRep(T c)
|
||||||
: mp(c)
|
: mp(c)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
BigIntRep(unsigned char c)
|
|
||||||
: mp(c)
|
|
||||||
{}
|
|
||||||
|
|
||||||
BigIntRep(signed int i)
|
|
||||||
: mp(i)
|
|
||||||
{}
|
|
||||||
|
|
||||||
BigIntRep(unsigned int i)
|
|
||||||
: mp(i)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
BigIntRep(signed short int s)
|
|
||||||
: mp(s)
|
|
||||||
{}
|
|
||||||
BigIntRep(unsigned short int s)
|
|
||||||
: mp(s)
|
|
||||||
{}
|
|
||||||
|
|
||||||
BigIntRep(signed long int l)
|
|
||||||
: mp(l)
|
|
||||||
{}
|
|
||||||
|
|
||||||
BigIntRep(unsigned long int l)
|
|
||||||
: mp(l)
|
|
||||||
{}
|
|
||||||
|
|
||||||
BigIntRep(float f)
|
|
||||||
: mp(f)
|
|
||||||
{}
|
|
||||||
|
|
||||||
BigIntRep(double d)
|
|
||||||
: mp(d)
|
|
||||||
{}
|
|
||||||
|
|
||||||
BigIntRep(const char* s, int base=0)
|
BigIntRep(const char* s, int base=0)
|
||||||
: mp(s)
|
: mp(s)
|
||||||
{}
|
{}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue