Add printer for std::weak_ptr
This commit is contained in:
parent
6d8bac661b
commit
8b9412cb7f
@ -296,6 +296,13 @@ namespace cling {
|
||||
return "std::shared_ptr -> " + printValue(val->get());
|
||||
}
|
||||
|
||||
// weak_ptr<T>:
|
||||
template <class T>
|
||||
inline std::string printValue(std::weak_ptr<T> *val)
|
||||
{
|
||||
return "std::weak_ptr -> " + printValue(val->lock().get());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user