SHARE
TWEET

Untitled

a guest Jun 15th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. vector<Column*> _columns;
  2. Column* value;
  3. char* name;
  4.      
  5. Table(char* name) {...}
  6.  
  7. ~Table() {...}
  8.  
  9. template <typename T>
  10. void addColumn(vector<T> v) {
  11.     auto column = DataColumnFactory::getColumn();
  12.     column.get()->addValuesToVector(v);
  13.     _columns.push_back(move(column));
  14. }
  15.  
  16.  
  17. int findLongestColumn() {
  18.     int length = 0;
  19.     for (auto &column : _columns) {
  20.         if (length < column.get()->lengthOfColumn()) //ERROR
  21.             length = column.get()->lengthOfColumn();
  22.     }
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top