diff --git a/include/openmc/distribution_spatial.h b/include/openmc/distribution_spatial.h index 8d5017a81..86e9c6e61 100644 --- a/include/openmc/distribution_spatial.h +++ b/include/openmc/distribution_spatial.h @@ -130,7 +130,7 @@ public: //! \return Sampled position Position sample(uint64_t* seed) const; - auto r() const { return r_; } + Position r() const { return r_; } private: Position r_; //!< Single position at which sites are generated };