mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-02-06 01:39:56 +08:00
Fix function reassignment
This commit is contained in:
parent
b091439567
commit
d638d87a0f
@ -156,7 +156,7 @@ namespace chaiscript
|
|||||||
|
|
||||||
/// Specific version of shared_ptr_clone just for Proxy_Functions
|
/// Specific version of shared_ptr_clone just for Proxy_Functions
|
||||||
template<typename Type>
|
template<typename Type>
|
||||||
std::shared_ptr<typename std::add_const<Type>::type> shared_ptr_unconst_clone(const std::shared_ptr<typename std::add_const<Type>::type> &p)
|
std::shared_ptr<typename std::remove_const<Type>::type> shared_ptr_unconst_clone(const std::shared_ptr<typename std::add_const<Type>::type> &p)
|
||||||
{
|
{
|
||||||
return std::const_pointer_cast<typename std::remove_const<Type>::type>(p);
|
return std::const_pointer_cast<typename std::remove_const<Type>::type>(p);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user