Hartmut Kaiser | 1 May 01:03
Picon
Gravatar

Re: Geometry Template Library from Intel

> That's good news.  I feared that you had been frightened-off by the
> previous discussions.
> 
> Although it's good to have the code, and no doubt some people who can
> scan C++ faster than I can will really appreciate it, what I'd love to
> see is more in the way of rationale and concept-documentation.  For
> example:
> 
> - My recollection of the last part of the discussions the first time
> around was that they focused on the "nasty" way in which you made it
> possible to adapt a legacy struct to work with your library, and in
> particular how you added methods to the class by casting from a base
> class to a subclass.  It would be great to see a write up of the
> rationale for that compared with the alternatives.  Perhaps this could
> just be distilled out of the previous discussions.  My feeling is that
> it may come down to this: what you've done is the most pragmatic
> solution for your environment, but it isn't something that could ever
> make it into the C++ standard library (since it used casts in a
> non-standards-compliant way).  So, should Boost only accept libraries
> that could be acceptable for C++, or could Boost have a more liberal
> policy?  Also, how much weight should be put on the "legacy" benefits
> of your approach?  My feeling is that the standard library, and Boost,
> typically prefer to "do it right as if you could start all over again",
> rather than fitting in with legacy problems.

Even more as it is possible to write the algorithms in a way that these are
agnostic of the concrete point data type used (as long as there are adaptors
available, allowing to make this point type compatible with the expected
point concept). Joel explicitly alluded to that in the first discussion and
I think there is no other way forward. Remember, Boost is a collection of
(Continue reading)

Picon
Favicon

Re: Geometry Template Library from Intel

In response to Phil,

>Although it's good to have the code, and no doubt some people who can 
>scan C++ faster than I can will really appreciate it, what I'd love to 
>see is more in the way of rationale and concept-documentation.  For
>example:

I uploaded 23KLOC.  I don't expect people to give up their day jobs just
to read my code, so your request seems quite sensible.

>- My recollection of the last part of the discussions the first time 
>around was that they focused on the "nasty" way in which you made it 
>possible to adapt a legacy struct to work with your library, and in 
>particular how you added methods to the class by casting from a base 
>class to a subclass.  It would be great to see a write up of the 
>rationale for that compared with the alternatives.  Perhaps this could 
>just be distilled out of the previous discussions.  My feeling is that 
>it may come down to this: what you've done is the most pragmatic 
>solution for your environment, but it isn't something that could ever 
>make it into the C++ standard library (since it used casts in a 
>non-standards-compliant way).  So, should Boost only accept libraries 
>that could be acceptable for C++, or could Boost have a more liberal 
>policy?  Also, how much weight should be put on the "legacy" benefits 
>of your approach?  My feeling is that the standard library, and Boost, 
>typically prefer to "do it right as if you could start all over again",

>rather than fitting in with legacy problems.

The rational was basically that it satisfied everyone's requirements at
the time.  Boost community input wasn't gathered, so strict compliance
(Continue reading)

Steven Watanabe | 1 May 02:20
Picon

Re: C++ Memory Management Innovation: GC Allocator

AMDG

shiwei xu wrote:
> I know that. But boost can't be complied by VC++ 6.0. So I don't include any
> boost header files.
>   

Some headers (including config.hpp) still work on VC++ 6.0

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Frank Mori Hess | 1 May 04:00
Favicon

Re: [smart_ptr] trunk versionof enable_shared_from_thisincompatible with TR1


On Wednesday 30 April 2008 17:21, Frank Mori Hess wrote:
> On Wednesday 30 April 2008 13:42 pm, Peter Dimov wrote:
> > In principle, a new esft may avoid this by:
> >
> > 1. Allowing only (expired) weak_ptr instances to be created in the
> > constructor;
> > 2. Bringing the weak_ptr instances back to life once a shared_ptr
> > takes ownership.
> >
> > This however seems to require a relatively major surgery to
> > sp_counted_base and friends; I'm not sure I'm comfortable with that.
>
> It sounds like you're heading in the direction of the "shared_from_that"
> idea I floated earlier:
>
> http://lists.boost.org/Archives/boost/2008/04/135372.php
>
> which would allow client code to distinguish between the cases of
> "shared_ptr not available yet" and "shared_ptr expired".

To be clear what I'm talking about, I've implemented a little proof of 
concept of "shared_from_that" and "enable_shared_from_that", and a little 
test program.

--

-- 
Frank

Attachment (enable_shared_from_that.hpp): text/x-c++hdr, 2912 bytes
(Continue reading)

Johan Råde | 1 May 07:24
Picon
Picon

Re: [Math/nextafter] A question of naming functions...

John Maddock wrote:

> 
> Feel free to work your bit twiddling magic on these :-)

I will *not* do that.
Actually, I'm *not* at all interested in floating point arithmetic.
I wrote the floating point classification functions
for one reason only: I needed them.

The native fp classification functions on MSVC 7.1 do not handle
single precision floating point numbers correctly,
so I had to put together my own.

--Johan

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Johan Råde | 1 May 08:02
Picon
Picon

Re: [Math/nextafter] A question of naming functions...

John Maddock wrote:
> Paul A Bristow wrote:

>>> floatdistance(lhs, rhs)?
>> Would adding an underscore be nicer:
>>
>> FPT float_distance(FPT lhs, FPT rhs);
> 

How about discrete_distance?

--Johan

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

John Maddock | 1 May 10:09
Picon

Re: 1.35.0 - MSC8/9 error C2059: syntax error : '__is_abstract'

Sören Freudiger wrote:
> Hi
> I have problemes with the serialization since I updated to boost
> 1.35.0
>
> Error:
> intrinsics.hpp
>
> #   define BOOST_IS_ABSTRACT(T) __is_abstract(T) //<-error C2059:
> syntax error : '__is_abstract'
> #   define BOOST_IS_CLASS(T) __is_class(T)       //this one isn't
> syntax higloghted, maybe not defined, too.
>
> Any idea what's the matter?

No... __is_abstract is a native VC++ compiler intrinsic, the docs for C2059 
suggest that something like #define __is_abstract(x) might cause this, is 
this possible in your case?

Otherwise if you have a test case you can post I'll look into it.

John. 

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

John Maddock | 1 May 10:20
Picon

Re: [Math/nextafter] A question of naming functions...

Johan Råde wrote:
> John Maddock wrote:
>
>>
>> Feel free to work your bit twiddling magic on these :-)
>
> I will *not* do that.
> Actually, I'm *not* at all interested in floating point arithmetic.
> I wrote the floating point classification functions
> for one reason only: I needed them.

LOL, <chuckle>, well you can't blame a guy for trying :-)

John. 

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

John Maddock | 1 May 10:20
Picon

Re: [Math/nextafter] A question of naming functions...

Johan Råde wrote:
>>>> floatdistance(lhs, rhs)?
>>> Would adding an underscore be nicer:
>>>
>>> FPT float_distance(FPT lhs, FPT rhs);
>>
>
> How about discrete_distance?

That's not bad at all actually,

Thanks, John. 

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Johan Råde | 1 May 10:34
Picon
Picon

Re: [Math/nextafter] A question of naming functions...

John Maddock wrote:
> Johan Råde wrote:
>>>>> floatdistance(lhs, rhs)?
>>>> Would adding an underscore be nicer:
>>>>
>>>> FPT float_distance(FPT lhs, FPT rhs);
>> How about discrete_distance?
> 
> That's not bad at all actually,
> 
> Thanks, John. 

To me the word distance suggests an unsigned quantity.
Maybe discrete_difference?

--Johan

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Gmane