On 2003-02-11 8:47 PM, "Philippe A. Bouchard" <[EMAIL PROTECTED]>
wrote:
> Jon Kalb wrote:
>
> [...]
>
>> If a user attempts to use this on a non-polymorphic object, will they
>> get a compile time error or run-time error?
>
> No compile-time error, but a run-time error may occur if multiple
>
vladimir josef sykora wrote:
> > The docs state that in quite vague terms and I don't remember where. I've
> > asked Jeremy about that and he agreed more documentation is needed, but
>
> I'm
>
> > not sure what those docs should say :-(
>
> If the algorithms' implementations receive color maps by
This is a request for anyone who is willing and able to help finish
writing the tests for policy_ptr in the sandbox. I'm afraid that I
just don't have the time to dedicate to this library to come
anywhere close to the April meeting of the LWG (or whoever it
is that's meeting). While most of the b
I made some stupid mispelling about the name, I just woke up to correct it:
http://groups.yahoo.com/group/boost/files/shifted_ptr/peak_of.hpp
Sorry about it,
Philippe A. Bouchard
___
Unsubscribe & other changes: http://lists.boost.org/mailman/lis
However, wouldn't writing
MemberFun
or even:
MemberFun
instead of
Function::MemberFun
be a lot simpler?
Yeah, I guess it would. The syntax I had before was limited by my lack of
knowledge about how to extract the arguments and return type from a
classtype. But I
Jon Kalb wrote:
[...]
> If a user attempts to use this on a non-polymorphic object, will they
> get a compile time error or run-time error?
No compile-time error, but a run-time error may occur if multiple
inheritance is used. There is basically nothing we can do in this
situation:
class A { c
On 2003-02-11 7:13 PM, "Philippe A. Bouchard" <[EMAIL PROTECTED]>
wrote:
> I would like to propose the following helper that returns the address of
> some polymorphic object's leftmost parent. Useful when you want to find the
> starting address of an allocated block given any other derived parent
I would like to propose the following helper that returns the address of
some polymorphic object's leftmost parent. Useful when you want to find the
starting address of an allocated block given any other derived parent:
http://groups.yahoo.com/group/boost/files/shifted_ptr/pick_of.hpp
Philippe
David Abrahams <[EMAIL PROTECTED]> writes:
ehab samir aziz <[EMAIL PROTECTED]> writes:
I did not find any executable file called bjam to run
it !!
Please see the tools/build/index.html page in your Boost distribution.
Definitely read ALL of the documentation. after building bjam and jam,
Here are two little classes that could be useful to create aligned types
on-the-fly:
http://groups.yahoo.com/group/boost/files/shifted_ptr/padding_of.hpp
http://groups.yahoo.com/group/boost/files/shifted_ptr/add_padding.hpp
Philippe A. Bouchard
___
"Mark Davenport" <[EMAIL PROTECTED]> wrote in message
01c2d1a1$7fdee890$4198fc3e@brio">news:01c2d1a1$7fdee890$4198fc3e@brio...
> Hello boost list
>
> I'm newish to C++ and very new to boost.
>
> I've just tried to build the object library for regex
> in Borland Builder 5 Pro on Windows XP.
vladimir josef sykora wrote:
> Hello Aleksey,
Hi Vladimir,
> Encapsulating algorithms with a _new_ namespace, and later injecting
> it into the ::mpl via 'using', solves fine gcc's ADL conflicts. Could
> you apply BOOST_MPL_AUX_AGLORITHM_NAMESPACE patch to other algorithms?
Sure, will do for t
Yes, I use a simple 2nd order stats class all the time.
There is a scalar version:
template
class Stat {
And for complex:
template
class Stat< std::complex > {
On Tuesday 11 February 2003 11:19 am, Jeff Garland wrote:
> Scott K wrote:
> > Hi all,
> > I have a small family of statistics classes
Well what do you know...
The "order_2_accumulator" class on that page looks just like my "stats"
class. I threw in min and max and have more functions, but otherwise
it's the same.
-Scott
Jeff Garland wrote:
... Specifically concerning statistics see:
http://www.crystalclearsoftware.com/cgi-bi
So, Let introduce one. I need something for coming release.
Gennadiy.
> > Any suggestions?
>
> Looks like testing for _POSIX2_VERSION would be another
> option - BTW I'm
> tempted to suggest that we add a config macro and tests for
> this, that way
> the configure script will pick this up: BOO
Alexander Terekhov wrote:
> Pavel Vasiliev wrote:
> [...]
>> Thread A, in release_strong:
>>atomic_decrement(&strong_count) == 0,
>>enter strong_refs_lost(),
>>lock
> ACK.
>> Thread B, in acquire_strong_from_weak:
> NAK.
> Thread B, in release_weak:
> a
Pavel Vasiliev wrote:
[...]
> Thread A, in release_strong:
>atomic_decrement(&strong_count) == 0,
>enter strong_refs_lost(),
>lock
ACK.
> Thread B, in acquire_strong_from_weak:
NAK.
Thread B, in release_weak:
atomic_decrement(&weak_count) == 0,
> Thread
Scott K wrote:
> Hi all,
> I have a small family of statistics classes which I have used from time
> to time. The one I use most often is simply called stats.
> Here's an example of it's use:
> ...details snipped...
I'm sure there are folks interested in statistical (and other)
functions. I've d
Alexander Terekhov wrote:
[...]
> void release_strong() {
> int status = pthread_refcount_decrement(&strong_count);
> if (PTHREAD_REFCOUNT_DROPPED_TO_ZERO == status) {
> destruct_object();
> release_weak();
> }
> }
> bool acquire_strong_from_weak() {
> int stat
David Abrahams wrote:
[...]
> OK, so what you really want is alignment_of.
Ah, there it is. Unions are great for this.
> By "STL" I presume you mean your particular STL implementation.
No I meant SGI's Standard Template Library (__STL_DATA_ALIGNMENT in
pthread_alloc).
[...]
>> Ex.:
>>
>> -
On Tue, 11 Feb 2003 08:09:19 -0500, David Abrahams
<[EMAIL PROTECTED]> wrote:
>Gennaro Prota <[EMAIL PROTECTED]> writes:
>> Could we subordinate BOOST_HAS_LONG_LONG to
>> defined(BOOST_ENABLE_LONG_LONG)?
>
>Even if we're willing to break user code and tell them they have to
>define that macro exp
Hi all,
I have a small family of statistics classes which I have used from time
to time. The one I use most often is simply called stats.
Here's an example of it's use:
...
stats myStats;
for (int i = 0; i < 100; ++i) {
myStats.add(i);
}
cout << "Average: " << myStats.getAverage(
"Philippe A. Bouchard" <[EMAIL PROTECTED]> writes:
> David Abrahams wrote:
>> "Philippe A. Bouchard" <[EMAIL PROTECTED]> writes:
>>
>>> Hi again,
>>>
>>> I am doing some helper class that will pad the space after a
>>> given type until it reaches a machine word boundary. This word
>>> boundar
David Abrahams wrote:
[...]
> Even if what you wrote made sense, which I'm not sure it does,
>
> [to me at least - how can a word boundary be a number (max over
> all types T of alignment_of - sizeof(char)), rather than an
> address?
It is the result of arithmetics between sizeo
David Abrahams wrote:
> "Philippe A. Bouchard" <[EMAIL PROTECTED]> writes:
>
>> Hi again,
>>
>> I am doing some helper class that will pad the space after a
>> given type until it reaches a machine word boundary. This word
>> boundary would be the maximum of (alignment_of::value -
>> sizeof(ch
Peter Dimov wrote:
> Pavel Vasiliev wrote:
>> May be the following code answers the challenge? :-).
> Interesting...
> [...]
>> void weak_ref_control_block::release_strong()
>> {
>> if(atomic_decrement(&strong_count) == 0)
>> strong_refs_lost();
>> }
>> bool weak_ref_control_block
ehab samir aziz <[EMAIL PROTECTED]> writes:
> I did not find any executable file called bjam to run
> it !!
Please see the tools/build/index.html page in your Boost distribution.
HTH,
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
___
U
> > The point is that I have my own internal properties for vertices and
edges,
> > and I had to construct new color maps to pass to the algorithms
(providing
> > get() and put()). Does this mean a that shallow copy is a requirement
for
> > the concept of property map?
>
> The docs state that in qu
Hello boost list
I'm newish to C++ and very new to boost.
I've just tried to build the object library for regex
in Borland Builder 5 Pro on Windows XP. I ran the make
on bcb5, got no errors at that stage, but when I try to compile
my app within the Builder IDE I get a fatal linker error:
Cannot
I did not find any executable file called bjam to run
it !!
--- David Abrahams <[EMAIL PROTECTED]> wrote:
> ehab samir aziz <[EMAIL PROTECTED]> writes:
>
> > I am running C++ ver 3 . How can I know exactly
> the
> > libraries linked ?
>
> You can examine the command lines generated by bjam
> w
Peter Dimov wrote:
>
> Alexander Terekhov wrote:
> [...]
> > bool acquire_strong_from_weak() {
> > int status = pthread_refcount_enroll_one(&strong_count); //
> [...]
> > Or am I just missing and/or misunderstanding something?
>
> You are missing the fact that nobody (even Google) has a cl
Gennaro Prota <[EMAIL PROTECTED]> writes:
> As I've asked in a recent post, I would like to have boost not using
> non-standard features (e.g. long long), unless they are explicitly
> requested by the user. The reason, besides general boost philosophy
> considerations, is that, with some compilers
On Tue, 04 Feb 2003 00:02:30 +, Alisdair Meredith
<[EMAIL PROTECTED]> wrote:
>The two defects are:
>The various std::isdigit, islower, isalnum etc. convenience functions
>will not compile.
Please could you post a concrete example?
[...]
>Second problem is with the STLport implementation of t
"Philippe A. Bouchard" <[EMAIL PROTECTED]> writes:
> Hi again,
>
> I am doing some helper class that will pad the space after a given type
> until it reaches a machine word boundary. This word boundary would be the
> maximum of (alignment_of::value - sizeof(char)) where T is any
> 'typename',
On Tue, 11 Feb 2003 11:36:56 -, "John Maddock"
<[EMAIL PROTECTED]> wrote:
>> Could we subordinate BOOST_HAS_LONG_LONG to
>> defined(BOOST_ENABLE_LONG_LONG)?
>
>I would rather that BOOST_HAS_LONG_LONG was just not defined in the first
>place when EDG is in strict mode - any ideas?
When Intel?
On Tue, 11 Feb 2003 11:40:20 -, "John Maddock"
<[EMAIL PROTECTED]> wrote:
>> Well, the title says it all :-) I would like to have a separate source
>> file for the ubiquitous BOOST_STATIC_CONSTANT. I have several files
>> that use BOOST_STATIC_CONSTANT but no real config macro. For those
>> on
> We could boilerplate each affected standard header, and whenever that
> header is included add
> #if defined( BOOST_WORKAROUND_BROKEN_BORLAND_STL_NAMESPACE )
> #include "boost/[patches]/[broken_header]"
> #endif
>
> Of course this moves tbe problem onto the library-maintainer, but avoids
> the h
> Could we subordinate BOOST_HAS_LONG_LONG to
> defined(BOOST_ENABLE_LONG_LONG)?
I would rather that BOOST_HAS_LONG_LONG was just not defined in the first
place when EDG is in strict mode - any ideas?
John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm
_
> I would like to propose the addition of a new config macro to
Boost.Config:
> BOOST_USING_OLD_STYLE_IOSTREAMS
>
> A (possibly incomplete) implementation is:
> #if defined(__GNUC__) && (__GNUC__ < 3) &&
!defined(__STL_USE_NEW_IOSTREAMS)
> || defined(_MSC_VER) && (_MSC_VER < 1300)
> #define
> Well, the title says it all :-) I would like to have a separate source
> file for the ubiquitous BOOST_STATIC_CONSTANT. I have several files
> that use BOOST_STATIC_CONSTANT but no real config macro. For those
> ones, I currently have something like
>
> #include "boost/config.hpp" // for BOOST_ST
> Any suggestions?
Looks like testing for _POSIX2_VERSION would be another option - BTW I'm
tempted to suggest that we add a config macro and tests for this, that way
the configure script will pick this up: BOOST_HAS_SIGACTION maybe?
John Maddock
http://ourworld.compuserve.com/homepages/john_mad
> This (and all the rest of the failures) are an indication that the library
> hasn't been built correctly or isn't being linked because it is
complaining
> about symbols built into libboost_date_time.
Maybe, but all I did was invoke the bjam to build everything - and BTW these
linker errors do no
On Mon, 10 Feb 2003 16:32:11 -0600, Aleksey Gurtovoy
<[EMAIL PROTECTED]> wrote:
> I proposed to split "utility.hpp" header a
>long time ago, and there was a general agreement, but it was postponed until
>the release is out, and I never got to doing it after that - even although
>Beman posted a rem
vladimir josef sykora wrote:
Hello vladimir,
"Vladimir Prus" <[EMAIL PROTECTED]> wrote in message
b2aipc$6us$[EMAIL PROTECTED]">news:b2aipc$6us$[EMAIL PROTECTED]...
Hi vladimir,
DF visit and undirected-DFV implementations (depth_first_visit_impl
and undir_dfv_impl) functions receive ColorMaps
Hello vladimir,
"Vladimir Prus" <[EMAIL PROTECTED]> wrote in message
b2aipc$6us$[EMAIL PROTECTED]">news:b2aipc$6us$[EMAIL PROTECTED]...
> Hi vladimir,
> > DF visit and undirected-DFV implementations (depth_first_visit_impl
> > and undir_dfv_impl) functions receive ColorMaps by value, consequently
Hello Aleksey,
Encapsulating algorithms with a _new_ namespace, and later injecting it into
the ::mpl via 'using', solves fine gcc's ADL conflicts. Could you apply
BOOST_MPL_AUX_AGLORITHM_NAMESPACE patch to other algorithms?
Thanks, ^ ^
--
vladimir josef sykora
morphochem
Hi vladimir,
DF visit and undirected-DFV implementations (depth_first_visit_impl
and undir_dfv_impl) functions receive ColorMaps by value, consequently the
main trunk of the algorithm loose the graph coloring that these functions
have performed.
Am I missing something here?
I think so. Property
DF visit and undirected-DFV implementations (depth_first_visit_impl
and undir_dfv_impl) functions receive ColorMaps by value, consequently the
main trunk of the algorithm loose the graph coloring that these functions
have performed.
Am I missing something here?
Also, in BFS and DFS algorithms, why
I attach extracts from the MSVC 7.0 warnings and documentation.
I don't think this is very important, but documenting requirements may be
helpful.
As for spell checking, MS FrontPage astonishingly doesn't appear to include a
spelling checker but I now find that after preparing each html file, one
49 matches
Mail list logo