B
Billy Patton
I have a class method that looks like this:
bool Results(std::vector<std::vector<xy_t>>& out);
xy_t looks like this
typedef struct { long x,y; } xy_t;
THe results would not compile. (linux RH3)
I added
typedef vector<xy_t> *vec_p;
Then I did
bool Results(std::vector<std::vector<vec_p>>& out);
THis compiled fine. What was wrong with the first instance?
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodology Group
Dallas, Texas, 214-480-4455, (e-mail address removed)
bool Results(std::vector<std::vector<xy_t>>& out);
xy_t looks like this
typedef struct { long x,y; } xy_t;
THe results would not compile. (linux RH3)
I added
typedef vector<xy_t> *vec_p;
Then I did
bool Results(std::vector<std::vector<vec_p>>& out);
THis compiled fine. What was wrong with the first instance?
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodology Group
Dallas, Texas, 214-480-4455, (e-mail address removed)