# Error when using UpdatePointUnsafe

**URL:** <https://forums.unrealengine.com/t/error-when-using-updatepointunsafe/912691>\
**Category:** C++\
**Tags:** unreal-engine, compile-error, CPP, question\
**Created:** [April 13, 2023, 8:04am UTC](https://forums.unrealengine.com/t/error-when-using-updatepointunsafe/912691 "2023-04-13T08:04:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles\_Cox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Charles\_Cox](https://forums.unrealengine.com/u/Charles_Cox)\
**Post date:** [April 13, 2023, 8:04am UTC](https://forums.unrealengine.com/t/error-when-using-updatepointunsafe/912691/1 "2023-04-13T08:04:31Z")

</div>

I am am currently having compile issues using the UpdatePointUnsafe function that is in Geometry::TPointHashGrid3d. The thread safe function compiles just fine, however I actually need to use the UpdatePointUnsafe version. Both the UpdatePointUnsafe and UpdatePoint are identical for the input requirements.

```auto
void UpdatePointUnsafe(const PointDataType& Value, const TVector<RealType>& OldPosition, const TVector<RealType>& NewPosition)

void UpdatePoint(const PointDataType& Value, const TVector<RealType>& OldPosition, const TVector<RealType>& NewPosition)

```

Here is how I am calling it:

```auto
int value = 0;
PointHash3->UpdatePointUnsafe(value, Positions[i], NewPositions[i]);

```

Below is the error I receive after the failed compile attempt:

```auto
1>C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\GeometryCore\Public\Spatial\PointHashGrid3.h(183): note: while compiling class template member function 'void UE::Geometry::TPointHashGrid3<int,double>::UpdatePointUnsafe(const PointDataType &,const UE::Math::TVector<double> &,const UE::Math::TVector<double> &)'
1> with
1> [
1> PointDataType=int
1> ]
1>Source\MyProject_01\Private\SpacialHashTest.cpp(58): note: see reference to function template instantiation 'void UE::Geometry::TPointHashGrid3<int,double>::UpdatePointUnsafe(const PointDataType &,const UE::Math::TVector<double> &,const UE::Math::TVector<double> &)' being compiled
1> with
1> [
1> PointDataType=int
1> ]

```
