User forums > Using Code::Blocks

CC: does not list "allocate", a member function of std::allocator.

(1/5) > >>

edison:
As the screenshots show, the allocate() of alloc is missing here:

edison:
I did try with the ClangLib. It works, the allocate member function is list up:

but ClangLib is slow and not stable...:(

here is a test example with source code: http://en.cppreference.com/w/cpp/memory/allocator

ollydbg:
Hi, edison, as you may already see that parsing C++ is not a very simple job, our buildin parser in C::B has many issues here and there especially handling templates, as you reported, this is a bug, but solving those issue are not quite easy as I can see. Unless you use some compiler's help (such as clang or maybe GCC).


ollydbg:
BTW: can you make a minimal sample code, so that I can test this bug in my computer? Thanks.

edison:

--- Code: ---#include <memory>

int main()
{
    std::allocator<int> a1; // default allocator for ints
    // int * a = a1.allocate(10); // space for 10 ints

    int * a = a1. //<--- here is the bug happened.

    return 0;
}

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version