I just came across this linkarticle by Danny Kalev which has a great tip for C++14 and up.
template<typename T> constexpr T pi = T(3.1415926535897932385); I thought this was pretty cool (though I would use the highest precision PI in there I could), especially because templates can use it based on type.
template<typename T> T circular_area(T r) { return pi<T> * r * r; } double darea= circular_area(5.5);//uses pi<double> float farea= circular_area(5.5f);//uses pi<float>