Boost logo

Boost :

From: Daryle Walker (darylew_at_[hidden])
Date: 2000-12-07 09:04:12

on 12/5/00 9:41 AM, Kevlin Henney at kevlin_at_[hidden] wrote:

> In message <90ibuc+udet_at_[hidden]>, d.frey_at_[hidden] writes
>> About lexical_cast_helper: I suggest hiding it in a "detail"-namespace
>> or something like that.
> Initially, yes. But it seems like a feature that we should be offering
> to others for their own specialisations, so perhaps in the long run
> migrate it up to public and documented boost.

That's a neat idea. I've used it in one of my functions. Archived file
"more_math.hpp" in the "" file in the Boost vault uses the
technique for the general division routine. The routine uses a helper class
for compute the division and modulus. The default implementation of the
helper class calls operator/() and operator%() separately, but users should
specialize the helper class if the user provides a simultaneous division and
modulus routine.

Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

Boost list run by bdawes at, gregod at, cpdaniel at, john at