×

Discussion Board

Results 1 to 4 of 4

Thread: RPointerArray

  1. #1
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    114

    RPointerArray

    I have a definition similar to this

    RPointerArray<CArrayPtrFlat<CDesC16ArrayFlat>> getBlockCharacter();

    But when I compile, i got "illegal template arguments"

    why is that so ?

    But I have successfully defined

    RPointerArray<CArrayPtrFlat<Block>> getBlockCharacter(); in other project..
    (Block is an user define class)...

    can someone help to explain this?
    also what can i do so that I can have an array of an array of CDesC16ArrayFlat

    thank you in advance.

  2. #2
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Re: RPointerArray

    So if am not wrong you want three dimensional arrays?
    Well I tried something like :
    Code:
    RPointerArray<CArrayPtrFlat<CCoeControl>> d;
    And it gave me the same error.
    --Mayur.
    Last edited by mayur_24; 2007-07-30 at 15:19.

  3. #3
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Re: RPointerArray

    Okay got it just use this:
    Code:
    RPointerArray<CArrayPtrFlat<CDesC16ArrayFlat> > getBlockCharacter();
    Note the space between the last '>>'
    CW confuses with '> >' for operator >>.
    --Mayur.

  4. #4
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: RPointerArray

    This is not a CW feature, but C++ 's

Similar Threads

  1. list of object using RArray and RPointerArray
    By a2sheds in forum Symbian C++
    Replies: 1
    Last Post: 2007-05-15, 23:29
  2. Memory leak when passing RPointerArray
    By arachidyl in forum Symbian C++
    Replies: 5
    Last Post: 2007-03-22, 07:10
  3. RArray vs. RPointerArray
    By johngoche in forum Symbian C++
    Replies: 1
    Last Post: 2006-11-08, 05:27
  4. RPointerArray value assignment
    By zhengyu97 in forum Symbian C++
    Replies: 2
    Last Post: 2005-04-06, 12:35
  5. RPointerArray Insertion and Access
    By Vextorin in forum Symbian C++
    Replies: 2
    Last Post: 2004-07-07, 20:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •