Search Result

Collapse
2 results in 0.0041 seconds.
Keywords
Members
Tags
std::vector
  •  

  • MacApp
    started a topic Must elements of a std::vector be contiguous?
    in C

    Must elements of a std::vector be contiguous?

    I read in
    http://www.open-std.org/jtc1/sc22/wg...efects.html#69
    they proposed:


    My question is: does the above implies the:
    Code:
    (Type *) &v<char>[n]==(Type *)(&v<char>[0] + n*sizeof (Type));
    ?
    where v is a std::vector of char, and Type is in general a simple structured type.
    Thanks and sorry for my bad english...
    See more | Go to post

  • lothas
    started a topic error C2679
    in C

    error C2679

    Hi, I'm working on a project to create a robotics simulation environment based on c++ and opengl. Right now I'm stuck trying to solve a compilation error that I'm getting while trying to push_back an object from one of my classes.
    Here's part of the code:
    Code:
    class RobotStruct  
    {
    public:
    	RobotStruct();
    	virtual ~RobotStruct();
    
    	void AddJoint(float Theta, float Alpha, float a, float d, int Type);
    ...
    See more | Go to post
Working...