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


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:


Aurélien Regat-Barrel

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