aboutsummaryrefslogtreecommitdiff
path: root/c/pl.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/pl.h')
-rw-r--r--c/pl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/pl.h b/c/pl.h
index 4a44f72..5c67af6 100644
--- a/c/pl.h
+++ b/c/pl.h
@@ -7,6 +7,8 @@
#include "common.h"
+int PlString(term_t t, std::wstring* pWstr, int iFlags = CVT_WRITE);
+
struct Frame
{
Frame();
@@ -37,8 +39,6 @@ private:
qid_t m_q;
};
-template <typename T> int PlString(term_t t, std::basic_string<T>* pBstr, int iFlags = CVT_WRITE);
-
/* Polymorphic aliases for PL_put_*, PL_get_*. */
inline int PlPut(term_t t, int x) { return PL_put_integer(t, x); }
inline int PlPut(term_t t, long x) { return PL_put_integer(t, x); }
@@ -76,7 +76,7 @@ inline int PlGet(term_t t, std::wstring* x) {
Mark m;
char* sz;
if (!PlGet(t, &sz)) return 0;
- *x = BstrFromSz<wchar_t>(sz);
+ *x = WstrFromSz(sz);
return 1; /* or catch potential exception from BstrFromSz? */
}