Thread: Defining a GetArray() Method

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    It'd be less confusing and less messy to use a
    std::array<ChildClass, SIZE> super_array;
    and then return super_array from your getarray function.


    Remember to use a compiler supporting C++0x/11 features.
    Last edited by manasij7479; 08-07-2011 at 12:13 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. #Defining
    By pc_doctor in forum C Programming
    Replies: 2
    Last Post: 05-25-2010, 08:04 AM
  2. difference between this->method() and method()
    By nacho4d in forum C++ Programming
    Replies: 7
    Last Post: 11-21-2009, 04:11 PM
  3. Encrypt method (from decrypt method)
    By mmmmmm in forum C# Programming
    Replies: 3
    Last Post: 09-19-2009, 10:35 AM
  4. Defining IDs
    By jmd15 in forum Windows Programming
    Replies: 3
    Last Post: 03-12-2005, 01:56 PM
  5. Defining
    By Tigerworks in forum C Programming
    Replies: 7
    Last Post: 03-09-2003, 05:34 AM