irr::core::array element typedef

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
SLC
Posts: 21
Joined: Mon Jan 06, 2014 9:41 pm

irr::core::array element typedef

Post by SLC »

Assuming I have `irr::core::array<SomeType>` there is currently no way to know that `SomeType` is used in `irr::core::array`. Simply put, the array type is missing the typedefs found in regular `std::vector` implementation.

Code: Select all

 
template <class T, typename TAlloc = irrAllocator<T> >
class array
{
 
public:
    typedef T value_type;
    typedef u32 size_type;
//...
 
If someone could add these two simple typedefs to the array type, that would be great. I would've done it myself but I haven't really used sourceforge.
CuteAlien
Admin
Posts: 9646
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: irr::core::array element typedef

Post by CuteAlien »

OK, added to svn trunk r5639. I didn't even notice those before in STL, guess I'm not yet doing enough meta-programming ;-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply