1
0

Delete copy and move constructors from cPath

cPath is not safe to copy or move due to pointers into the std::map m_Map.
This commit is contained in:
tycho 2015-12-15 10:44:29 +00:00
parent 2a218b06c2
commit 0fb8646198

View File

@ -76,6 +76,13 @@ public:
/** Creates a dummy path which does nothing except returning false when isValid is called. */ /** Creates a dummy path which does nothing except returning false when isValid is called. */
cPath(); cPath();
/** delete default constructors */
cPath(const cPath & a_other) = delete;
cPath(cPath && a_other) = delete;
cPath & operator=(const cPath & a_other) = delete;
cPath & operator=(cPath && a_other) = delete;
/** Performs part of the path calculation and returns the appropriate status. /** Performs part of the path calculation and returns the appropriate status.
If NEARBY_FOUND is returned, it means that the destination is not reachable, but a nearby destination If NEARBY_FOUND is returned, it means that the destination is not reachable, but a nearby destination
is reachable. If the user likes the alternative destination, they can call AcceptNearbyPath to treat the path as found, is reachable. If the user likes the alternative destination, they can call AcceptNearbyPath to treat the path as found,