[gjs/gnome-42] gi/arg-cache.cpp: Fix building on Visual Studio
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gjs/gnome-42] gi/arg-cache.cpp: Fix building on Visual Studio
- Date: Thu, 21 Jul 2022 17:11:40 +0000 (UTC)
commit 8e79d4936fd904939af3bf25449a12e7f6e03993
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jul 20 11:21:12 2022 +0800
    gi/arg-cache.cpp: Fix building on Visual Studio
    
    Marking the constructor for `Callback` as constexpr caused trouble for Visual
    Studio as the definition of `CallbackIn` rejected it as the SkipAll items
    are not marked as constexpr, so make the constructor for `Callback` non-
    constexpr to fix the build.
 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 df7cd1c67..017f17493 100644
--- a/gi/arg-cache.cpp
+++ b/gi/arg-cache.cpp
@@ -262,7 +262,7 @@ struct RegisteredInterface : BaseInfo {
 };
 
 struct Callback : Nullable, BaseInfo {
-    constexpr explicit Callback(GIInterfaceInfo* info)
+    explicit Callback(GIInterfaceInfo* info)
         : BaseInfo(info, GjsAutoTakeOwnership{}),
           m_scope(GI_SCOPE_TYPE_INVALID) {}
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]