-
uthash assumes the existence of typeof() when being compiled as C++ - unfortunately MSVC does not implement typeof() and hence it won't compile.
Here is a C++ metaprogramming implementation of typeof() for MSVC (taken from http://www.nedproductions.biz/blog/2009/11/09/implementing-typeof-in-microsofts-c-compiler):
#if defined(_MSC_VER) && _MSC_VER>=1400
namespace msvc_typeof_impl {
/*...
2009-11-11 14:30:53 UTC by ned14
-
Found one bug in uthash v1.8: it uses a C99 header which isn't supported on older compilers, so you need to do this instead:
#if __STDC_VERSION__ >= 199901L /* C99 or better */
#include /* uint32_t etc */
#else
typedef unsigned int uint32_t;
#endif
I also have a suggestion which seems eminently useful:
#define HASH_FIND_PTR(head,findptr,out) \...
2009-11-11 14:27:14 UTC by ned14
-
thanson committed revision 123 to the uthash SVN repository, changing 4 files.
2009-09-09 03:36:42 UTC by thanson
-
thanson committed revision 122 to the uthash SVN repository, changing 1 files.
2009-09-09 03:35:12 UTC by thanson
-
thanson made 1 file-release changes.
2009-09-09 03:24:04 UTC by thanson
-
thanson made 1 file-release changes.
2009-09-09 03:22:01 UTC by thanson
-
thanson committed revision 121 to the uthash SVN repository, changing 1 files.
2009-09-09 03:03:06 UTC by thanson
-
thanson committed revision 120 to the uthash SVN repository, changing 1 files.
2009-09-09 03:01:05 UTC by thanson
-
thanson committed revision 119 to the uthash SVN repository, changing 1 files.
2009-09-09 02:50:40 UTC by thanson
-
thanson committed revision 118 to the uthash SVN repository, changing 1 files.
2009-09-09 02:47:45 UTC by thanson