Hi all,
with the latest version of click (git
f2498fdb7d3fd756617ed817b0cf92c3b8c4adf8) i get the folling error when i try
to build libnsclick.so :
/usr/src/click$ make ns
make[1]: Entering directory `/usr/src/click/ns'
CXX ../lib/straccum.cc
In file included
from ../lib/straccum.cc:26: ../include/click/timestamp.hh:1263: error:
specialization of 'template<class T> struct has_trivial_copy' in different
namespace
../include/click/type_traits.hh:16: error: from definition
of 'template<class T> struct has_trivial_copy'
make[1]: *** [straccum.o] Error 1
The attached patch solves the problem (missing CLICK_DECLS and CLICK_ENDDECLS
in include/click/type_traits.hh)
Best regards,
Robert
diff --git a/include/click/type_traits.hh b/include/click/type_traits.hh
index 1e1cd72..beed0d6 100644
--- a/include/click/type_traits.hh
+++ b/include/click/type_traits.hh
@@ -1,6 +1,8 @@
#ifndef CLICK_TYPE_TRAITS_HH
#define CLICK_TYPE_TRAITS_HH
+CLICK_DECLS
+
template<typename T, T val>
struct integral_constant {
typedef integral_constant<T, val> type;
@@ -375,4 +377,6 @@ inline void extract_integer(const Limb *x, V &value) {
>::extract(x, value);
}
+CLICK_ENDDECLS
+
#endif
_______________________________________________
click mailing list
[email protected]
https://amsterdam.lcs.mit.edu/mailman/listinfo/click