¡@

Home 

c++ Programming Glossary: myinteger

How do I initialize a stl vector of objects who themselves have non-trivial constructors?

http://stackoverflow.com/questions/6142830/how-do-i-initialize-a-stl-vector-of-objects-who-themselves-have-non-trivial-cons

constructors suppose I have the following class class MyInteger private int n_ public MyInteger int n n_ n MORE STUFF And suppose.. the following class class MyInteger private int n_ public MyInteger int n n_ n MORE STUFF And suppose this class don't have a default.. this class don't have a default trivial constructor MyInteger . I must always supply an int to initialize it for some reason...