Changeset 11:335ea55eab51 in rrlib_geometry


Ignore:
Timestamp:
18.04.2011 01:30:16 (9 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Convert:
svn:2168a036-5f5f-4461-96ec-bf27dc59b608/trunk@12
Message:

Fixed segfault

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tPoint.h

    r8 r11  
    8080 
    8181  inline tPoint() : tVector() {} 
    82   inline tPoint(const tPoint &other) : tVector(other) {} 
     82  inline tPoint(const tPoint &other) : tVector(*reinterpret_cast<const tVector *>(&other)) {} 
    8383 
    8484  inline tPoint(const tVector &vector) : tVector(vector) {} 
    8585 
    8686  template <typename ... TValues> 
    87   explicit inline tPoint(TElement value, TValues... values) : tVector(value, values...) {} 
     87  explicit inline tPoint(TValues... values) : tVector(values...) {} 
    8888 
    8989  inline tPoint &operator = (const tPoint &other) 
Note: See TracChangeset for help on using the changeset viewer.