Boost logo

Boost Users :

Subject: [Boost-users] [bind] How to dereference _1 in a boost::bind expression
From: Peter Barker (newbarker_at_[hidden])
Date: 2008-10-02 06:12:54


Here's an example of my problem:

#include <algorithm>
#include <vector>

#include <boost/bind.hpp>

class TheClass

void accept(TheClass& tc)

int main()
        std::vector<TheClass*> cont;

        // Compile error - how to dereference _1 ???

How can I dereference _1 so I can use the accept function?



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at