declare a pointer to a function ..

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JDT

    #1

    declare a pointer to a function ..

    Hi,

    Is there a way to have one statement to replace the two statements
    below? I wonder C++ systax exists to allow declaring pFunc without
    using the typedef. Your help is appreciated.

    typedef void (FUNC)(vector<i nt>);
    FUNC *pFunc;

    JD
  • red floyd

    #2
    Re: declare a pointer to a function ..

    JDT wrote:
    Hi,
    >
    Is there a way to have one statement to replace the two statements
    below? I wonder C++ systax exists to allow declaring pFunc without
    using the typedef. Your help is appreciated.
    >
    typedef void (FUNC)(vector<i nt>);
    FUNC *pFunc;
    >
    >
    void (*pFunc)(vector <int>);

    Comment

    Working...