aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'lang/cpp/src/error.h')
-rw-r--r--lang/cpp/src/error.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/cpp/src/error.h b/lang/cpp/src/error.h
index bc970e36..000b562b 100644
--- a/lang/cpp/src/error.h
+++ b/lang/cpp/src/error.h
@@ -47,7 +47,10 @@ public:
explicit Error(unsigned int e) : mErr(e), mMessage() {}
const char *source() const;
- const char *asString() const;
+ /* This function is deprecated. Use asStdString() instead. asString() may
+ * return wrongly encoded (i.e. not UTF-8) results on Windows for the main
+ * thread if the function was first called from a secondary thread. */
+ GPGMEPP_DEPRECATED const char *asString() const;
std::string asStdString() const;
int code() const;