# New SmartPointer issues

**URL:** https://discourse.itk.org/t/new-smartpointer-issues/693
**Category:** Engineering
**Created:** [February 20, 2018, 6:43pm UTC](https://discourse.itk.org/t/new-smartpointer-issues/693 "2018-02-20T18:43:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![blowekamp](https://discourse.itk.org/user_avatar/discourse.itk.org/blowekamp/32/79_2.png) [@blowekamp](https://discourse.itk.org/u/blowekamp)
#### Post date: [February 20, 2018, 6:43pm UTC](https://discourse.itk.org/t/new-smartpointer-issues/693/1 "2018-02-20T18:43:24Z")

</div>

Following the recent [update to ITK’s SmartPointers](https://github.com/InsightSoftwareConsortium/ITK/commit/f9442c90df0170bc88358c7187d831942ccdc665), I had one [issue](https://open.cdash.org/viewBuildError.php?buildid=5266398) with compilation of SimpleITK:

```auto
SimpleITK/Code/BasicFilters/src/sitkCreateInterpolator.hxx:143:14: error: conversion from 'long int' to 'itk::InterpolateImageFunction, double>::Pointer {aka itk::SmartPointer, double> >}' is ambiguous

```

Which boils down to:

```auto
 itk::SmartPointer<ITKType> SomeFunction() 
{
return NULL;
}

```

This was an easy [fix](https://github.com/SimpleITK/SimpleITK/pull/405/files). I just globally replaced `NULL` with the `SITK_NULLPTR` macro which is defined as `nullptr` c++11.
