projects
/
shibboleth
/
cpp-xmltooling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some root interfaces and configuration machinery
[shibboleth/cpp-xmltooling.git]
/
xmltooling
/
base.h
diff --git
a/xmltooling/base.h
b/xmltooling/base.h
index
3fe0221
..
4fc9d51
100644
(file)
--- a/
xmltooling/base.h
+++ b/
xmltooling/base.h
@@
-71,4
+71,14
@@
#define XMLTOOL_EXCEPTIONAPI(api)
\r
#endif
\r
\r
#define XMLTOOL_EXCEPTIONAPI(api)
\r
#endif
\r
\r
+// Macro to block copy c'tor and assignment operator for a class
\r
+#define MAKE_NONCOPYABLE(type) \
\r
+ private: \
\r
+ type(const type&); \
\r
+ type& operator=(const type&)
\r
+
\r
+#ifndef NULL
\r
+#define NULL 0
\r
+#endif
\r
+
\r
#endif /* __xmltooling_base_h__ */
\r
#endif /* __xmltooling_base_h__ */
\r