Various cleanups

This commit is contained in:
Jason Turner 2017-11-18 18:42:45 -07:00
parent a6d30baa27
commit d59350d356
2 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ namespace chaiscript
/// Specific version of shared_ptr_clone just for Proxy_Functions
template<typename Type>
std::shared_ptr<typename std::remove_const<Type>::type> shared_ptr_unconst_clone(const std::shared_ptr<typename std::add_const<Type>::type> &p)
std::shared_ptr<std::remove_const_t<Type>> shared_ptr_unconst_clone(const std::shared_ptr<std::add_const_t<Type>> &p)
{
return std::const_pointer_cast<typename std::remove_const<Type>::type>(p);
}
@ -483,7 +483,7 @@ namespace chaiscript
opers_arithmetic_pod(m);
m.add(fun(&Build_Info::version_major), "version_major");
m.add(fun(&Build_Info::version_minor), "version_minor");
m.add(fun(&Build_Info::version_patch), "version_patch");

View File

@ -194,7 +194,7 @@ namespace chaiscript
public:
/// Basic Boxed_Value constructor
template<typename T,
typename = typename std::enable_if<!std::is_same<Boxed_Value, typename std::decay<T>::type>::value>::type>
typename = std::enable_if_t<!std::is_same_v<Boxed_Value, std::decay_t<T>>>>
explicit Boxed_Value(T &&t, bool t_return_value = false)
: m_data(Object_Data::get(std::forward<T>(t), t_return_value))
{