Summary For some reason, my member function template that invokes a lambda function fails to compile with error C2275 ... illegal use of this type as an expression, but when the function is moved out
I try to write a class that takes a tuple of functions as its argument and overloads operator() for all argument_types of the function. Right now this looks like this:
Is there a class that does garbage collection for C++. I was thinking something like: class A : public GarbageCollected<A>
Consider this simple class: template<class T> class Foo{ public: Foo(T const& val) : _val(val) {}
Is it somehow possible to pass an std::unique_ptr as a parameter to a boost::thread constructor? If not, what is the best workaround?
I\'ve been experimenting with variadic templates and argument forwarding. I think I\'ve found some inconsistent behaviour.
I currently write on an event handler system in C++0x. The \"handlers\" for each event (there can be multiple handlers) are registered by passing any kind of function/method that can be stored in a st
I\'m looking into writing a userland threading library, since there seems to be no active work in this area, and I believe the C++0x promises and futuresmay give this model some power. Unfortunately,
For the Standard allocator interface for use in, say, std::vector, is re-allocation supported? I have a rather specific use-case in which being able to realloc directly would be much more efficient th
I often write stuff like: const auto end = some_container.end(); for( auto it = some_container.begin(); it != end; ++it )