Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule_pointcloud.cpp

    r112b09 r274d45  
    5757void molecule::GoToFirst() const
    5858{
    59   InternalPointer = atoms.begin();
     59  // evil hack necessary because
     60  // -# although InternalPointer is mutable
     61  // -# only const_iterator begin() is called due to const in the function declaration above
     62  // -# and there is no cast from const_iterator to const iterator
     63  atomSet::const_iterator test = begin();
     64  InternalPointer = *(reinterpret_cast<atomSet::iterator *>(&test));
    6065};
    6166
Note: See TracChangeset for help on using the changeset viewer.