|
Boost :
|
- Next message: Jeremy Siek: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Previous message: Jens Maurer: "Re: [boost] rational.hpp - abs() again"
- In reply to: Moore, Paul: "Koenig lookup, names in std:: - Summary"
- Next in thread: Jeremy Siek: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Reply: Jeremy Siek: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
"Moore, Paul" wrote:
> 1. Should Boost libraries only look in std:: for functions specified in the
> standard?
No.
This prevents standard-compliant extension by user-defined types. When we
have more numeric types which build on one another (matrix<rational<bigint> > >),
extensibility will become important.
> 2. As an alternative, should Boost libraries use Koenig lookup
Yes.
As a workaround for compilers without Koenig lookup, the relevant
functions can be duplicated in namespace boost with appropriate
inline overloads which delegate to std::. Of course, you have to
prevent multiple definition, which means you need a separate header
file for that. See my suggestion in the thread
"Big checkin, lots of fixes".
> 4. Specific to the rational library, would anyone have any strong objections
> if I were to implement abs() without using an existing abs() function on the
> underlying integer type?
No objection.
Jens Maurer
- Next message: Jeremy Siek: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Previous message: Jens Maurer: "Re: [boost] rational.hpp - abs() again"
- In reply to: Moore, Paul: "Koenig lookup, names in std:: - Summary"
- Next in thread: Jeremy Siek: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Reply: Jeremy Siek: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
- Maybe reply: Gabriel Dos Reis: "Re: [boost] Koenig lookup, names in std:: - Summary"
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk