[gjs/fix-windows] arg-cache.cpp: Drop constexpr for RegisteredType ctor
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/fix-windows] arg-cache.cpp: Drop constexpr for RegisteredType ctor
- Date: Wed, 12 Jan 2022 08:56:12 +0000 (UTC)
commit 65273339041b541c13026a33ab2149062e36b92a
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Jan 12 16:54:43 2022 +0800
arg-cache.cpp: Drop constexpr for RegisteredType ctor
Apparently Visual Studio does not like the notion of this. This will fix C3615
compiler dianostic errors for this.
gi/arg-cache.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gi/arg-cache.cpp b/gi/arg-cache.cpp
index dd25e16a..2fda580c 100644
--- a/gi/arg-cache.cpp
+++ b/gi/arg-cache.cpp
@@ -233,7 +233,7 @@ struct BaseInfo {
// boxed / union / GObject
struct RegisteredType {
- constexpr RegisteredType(GType gtype, GIInfoType info_type)
+ RegisteredType(GType gtype, GIInfoType info_type)
: m_gtype(gtype), m_info_type(info_type) {}
explicit RegisteredType(GIBaseInfo* info)
: m_gtype(g_registered_type_info_get_g_type(info)),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]