summaryrefslogtreecommitdiffstats
path: root/src/util/share.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/share.h')
-rw-r--r--src/util/share.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/share.h b/src/util/share.h
index e9e6c5eb0..93cef7a02 100644
--- a/src/util/share.h
+++ b/src/util/share.h
@@ -113,9 +113,8 @@ inline shared_ptr<T> share_unsafe(T const *obj) {
return shared_ptr<T>::share_unsafe(obj);
}
-template <typename T>
-inline shared_ptr<T> share_static(T const *obj) {
- return shared_ptr<T>::share_unsafe(obj);
+inline shared_ptr<char> share_static_string(char const *string) {
+ return share_unsafe(string);
}
template <typename T1, typename T2>