Changes in src/molecule_pointcloud.cpp [6ef0a4:274d45]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule_pointcloud.cpp
r6ef0a4 r274d45 5 5 * Author: heber 6 6 */ 7 8 #include "Helpers/MemDebug.hpp" 7 9 8 10 #include "atom.hpp" … … 55 57 void molecule::GoToFirst() const 56 58 { 57 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)); 58 65 }; 59 66
Note:
See TracChangeset
for help on using the changeset viewer.