Skip to main content
Home▸ Forums▸ 68kMLA▸ Where are all the programmers? — #88
Post #88 by leitec
Source Forum68kMLA
CategoryDevelopment
Post DateFri, 1 Feb 2013 - 23:00
Original URLhttps://68kmla.org/bb/threads/where-are-all-the-programmers.18887/
Post
You're welcome!

I am not very familiar with C++, but I did try to figure that out today. The C/C++ compiler manual and MSL reference both indicate that that is possible, but testing showed otherwise. I finally found the answer in the release notes. If you look at vector.h, the part that defines a default allocator is not active (#ifdef MSIPL_DEF_TEMPARG), so you have to define it manually. One of the examples in the release notes has it as:

vector > v;

The tricky part is that the space between the two >'s is significant, which I suppose has to do with the fact that >> is an operator in C++. If you look at the inactive default allocator thing in vector.h, it's there too:

template >

I tried with

vector > arr;

and it worked.