Skip to content

Commit

Permalink
Template function declaration with definition => don't export
Browse files Browse the repository at this point in the history
  • Loading branch information
egladil86 authored and artem-ogre committed Mar 21, 2022
1 parent 696b82f commit a50f4ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CDT/include/CDT.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ template <
typename TVertexIter,
typename TGetVertexCoordX,
typename TGetVertexCoordY>
CDT_EXPORT DuplicatesInfo FindDuplicates(
DuplicatesInfo FindDuplicates(
TVertexIter first,
TVertexIter last,
TGetVertexCoordX getX,
Expand All @@ -315,7 +315,7 @@ CDT_EXPORT DuplicatesInfo FindDuplicates(
* @param duplicates information about duplicates
*/
template <typename TVertex, typename TAllocator>
CDT_EXPORT void RemoveDuplicates(
void RemoveDuplicates(
std::vector<TVertex, TAllocator>& vertices,
const std::vector<std::size_t>& duplicates);

Expand Down Expand Up @@ -362,7 +362,7 @@ template <
typename TGetVertexCoordY,
typename TVertexAllocator,
typename TEdgeAllocator>
CDT_EXPORT DuplicatesInfo RemoveDuplicatesAndRemapEdges(
DuplicatesInfo RemoveDuplicatesAndRemapEdges(
std::vector<TVertex, TVertexAllocator>& vertices,
std::vector<Edge, TEdgeAllocator>& edges,
TGetVertexCoordX getX,
Expand Down
4 changes: 2 additions & 2 deletions CDT/include/CDTUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const T& getY_V2d(const V2d<T>& v)

/// If two 2D vectors are exactly equal
template <typename T>
CDT_EXPORT bool operator==(const CDT::V2d<T>& lhs, const CDT::V2d<T>& rhs)
bool operator==(const CDT::V2d<T>& lhs, const CDT::V2d<T>& rhs)
{
return lhs.x == rhs.x && lhs.y == rhs.y;
}
Expand Down Expand Up @@ -163,7 +163,7 @@ template <
typename TVertexIter,
typename TGetVertexCoordX,
typename TGetVertexCoordY>
CDT_EXPORT Box2d<T> envelopBox(
Box2d<T> envelopBox(
TVertexIter first,
TVertexIter last,
TGetVertexCoordX getX,
Expand Down

0 comments on commit a50f4ce

Please sign in to comment.