|
Boost Users : |
Subject: Re: [Boost-users] [function] Boost.Function won't compile under Borland DevStudio 2006
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2010-04-13 18:49:07
2010/4/13 Fábio 'Petrucio' Stange <petrucio_at_[hidden]>:
>
>> Well the initial error appears to just be instancing problem. Â Might
>> put a static bool set to false on init, test it after the fact, and if
>> false set it to true and also set the struct above it, that incurs
>> obvious overhead, and as stated, there might be more problems as well.
>>
>
> Yes, that was the first thing that ocurred to me; the problem is, how the
> heck do I initialize vtable_type? I don't know what's really inside it, and
> I've taken a beating trying to follow up it's declarations, it's quite
> nasty.
>
> Â Â static bool _vtable_init = false;
> Â Â static vtable_type stored_vtable;
> Â Â if (!_vtable_init) {
> Â Â Â stored_vtable // ????????? What now?
> Â Â Â _vtable_init = true;
> Â Â }
I am not sure what it contains off hand (not home), but if you poke me
later to remind me then I can take a look and give you some real
non-pseudo code.
2010/4/13 Fábio 'Petrucio' Stange <petrucio_at_[hidden]>:
>> Obviously need to customize them for each type of callback you will
>> need, and there are *much* better ways to do this, more reusable, and
>> faster, but that requires decent template support (unsure how well
>> that compiler works), and you pretty much end up remaking boost
>> function/bind anyway.
>
> It has half-decent (hmmn) template support, I use it infrequently but I do
> use it, and boost::shared_ptr and the likes frequently, they work fine. But
> adding more code to maintain, specially templated, is the last thing I want
> to do now, so I'll stick with the static function pointers if I can't get
> function_template.hpp to compile.
Is there really not a newer version of that compiler that actually has
decent support for the standard yet?
2010/4/13 Fábio 'Petrucio' Stange <petrucio_at_[hidden]>:
> Anyway, thanks *a lot* for the time you've taken to answer me so far.
It is a nice distraction, been so busy with non-programming things
lately (finally clearing up), it is good to delve back into it. :)
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net