You cannot post messages because only members can post, and you are not currently a member.
Description:
Boost users mailing list archive
|
|
|
[SmartPtr] shared_ptr as a default value in function template
|
| |
Hello,
In the wake of one of recent SO posts... The following doesn't compile
in MSVC10 (Boost 1.53):
...
template<class T>
void f(T item, boost::shared_ptr<int> name = boost::make_shared<int>())
{
...
int main()
{
f(0);
...
Is it a bug in make_shared or the above violates some Standard paragraph?... more »
|
|
Compile errors including boost/regex.hpp
|
| |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 When I try to compile a file that includes <boost/regex.hpp> I get the following error: .../usr/local/include/boost/re gex/regex_traits.hpp:27:0, ..."test" passed 2 arguments, but ..."test" passed 2 arguments, but .../usr/local/include/boost/re gex/regex_traits.hpp:27:0,... more »
|
|
[atomic] When to load/store
|
| |
Hello,
I have some thread synchronization to do, probably will end up using
some sort of internally synchronized cancelation or other state to
message between parent and child thread.
If the state uses boost::atomic<bool> _canceled, for instance, how do
I go about setting/getting the value? I am assuming that we do... more »
|
|
[msm] Manually setting next state
|
| |
Hi,
Is there a way to manually set the next state for the state machine.
I have an orthogonal region defined for handling errors, where Error is an
interruptible state.
---------- -------------
...---------- -------------
This is similar to the example here :... more »
|
|
[Atomic] / PPC / error: impossible constraint in 'asm'
|
| |
Hello, I get the error below compiling with (Xcode 2.5 / OS X 10.4.11) only for PPC arch. boost_1_53_0/boost/atomic/deta il/gcc-ppc.hpp:1204: error: impossible constraint in 'asm'
The related code is:
static boost::atomic<long> messageCount_(0);
number_ = messageCount_.fetch_add(1, boost::memory_order_relaxed);... more »
|
|
[thread] "almost works" clarification
|
| |
Hello,
Okay, so without starting a flame war, because that is not my
intention... Also bear in mind, I am coming from an informed C# .NET
frame of mind having worked with .NET threading, synchronization,
events, and so forth.
I ran across this article, which although a bit dated, is a pretty... more »
|
|
[accumulator] with complex domain model
|
| |
Hello,
We've got a complex domain model which must be accumulated and
eventually averaged together. I am already overloading the operators
for that model.
We could roll our own with just the operators we'll need to
accommodate, like +, +=, /, etc, but would like to take a gander at
Boost.Accumulator first. Would be much better, obviously, rather than... more »
|
|
endless loop and/or crash in boost::interprocess
|
| |
How do I debug a potential endless loop and heap corruption issue involving boost::interprocess "new managed_shared_memory" freezing forever or crashing? I posted this on stackoverflow but I am hopeful that a real expert in Boost::Interprocess may have seen this freeze-up and crash before. Outside the debugger it manifests as a freeze-up, inside the debugger it manifests as a series of exceptions inside an endless... more »
|
|
[boost][thread] Future's scheduler
|
| |
I'm using boost.thread V4 in my projects because I would like to use
futures.
I understand that boost 1.53 implementation of future.then() is incomplete
but I think it's ok
for my current use.
However I think there might be something missing.
I'm in a case where the user of my library provide his own task scheduler... more »
|
|
|