[cpp-sp] branch main updated: Move MAKE_NONCOPYABLE to internal.h

Rod Widdowson rdw at steadingsoftware.com
Tue Dec 3 14:09:33 UTC 2024


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=7b7491a9efa81d7b42e492bb457f9740c6639992

The following commit(s) were added to refs/heads/main by this push:
     new 7b7491a9 Move MAKE_NONCOPYABLE to internal.h
7b7491a9 is described below

commit 7b7491a9efa81d7b42e492bb457f9740c6639992
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Dec 3 14:08:08 2024 +0000

    Move MAKE_NONCOPYABLE to internal.h
    
    Conditionalized for now because xmltooling/base.h also sets it
---
 shibsp/internal.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/shibsp/internal.h b/shibsp/internal.h
index 84745ef3..3089825d 100644
--- a/shibsp/internal.h
+++ b/shibsp/internal.h
@@ -33,6 +33,14 @@
 // Export public APIs
 #define SHIBSP_EXPORTS
 
+#ifndef MAKE_NONCOPYABLE
+#define MAKE_NONCOPYABLE(type) \
+    private: \
+        type(const type&); \
+        type& operator=(const type&)
+
+#endif
+
 // eventually we might be able to support autoconf via cygwin...
 #if defined (_MSC_VER) || defined(__BORLANDC__)
 # include "config_win32.h"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list