Boost logo

Boost Users :

Subject: [Boost-users] Weird code in lockfree::queue::reserve (compilation error)
From: Aurelien Regat-Barrel (arb_at_[hidden])
Date: 2016-04-02 11:08:40


Hello,

I'm trying to use lockfree::queue, and I get a compiler error when calling reserve(). The following code does not compile with VC++ 2015:

    void reserve(size_type n)
    {
        pool.template reserve<true>(n);
    }

And indeed... what does this syntax mean: "pool.template reserve"? You can see it here:
http://www.boost.org/doc/libs/1_60_0/boost/lockfree/queue.hpp

Regards,

Aurélien Regat-Barrel


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