Commits

alamaison  committed 67e6d8f

Added support for VT_I8 (LONGLONG) and VT_UI8 (ULONGLONG) to variant_t.

  • Participants
  • Parent commits 6482d80

Comments (0)

Files changed (1)

File include/comet/variant.h

 		inline operator int() const { return as_int(); }
 		COMET_VARIANT_CONVERTERS_EXPLICIT(long, I4, as_long);
 		inline operator long() const { return as_long(); }
+		COMET_VARIANT_CONVERTERS_EXPLICIT(LONGLONG, I8, as_longlong);
+		inline operator LONGLONG() const { return as_longlong(); }
 		COMET_VARIANT_CONVERTERS_EXPLICIT(float, R4, as_float);
 		inline operator float() const { return as_float(); }
 		COMET_VARIANT_CONVERTERS_EXPLICIT(double, R8, as_double);
 		COMET_VARIANT_CONVERTERS_EXPLICIT(unsigned short, UI2, as_ushort);
 		COMET_VARIANT_CONVERTERS_EXPLICIT(unsigned int, UI4, as_uint);
 		COMET_VARIANT_CONVERTERS_EXPLICIT(unsigned long, UI4, as_ulong);
+		COMET_VARIANT_CONVERTERS_EXPLICIT(ULONGLONG, UI8, as_ulonglong);
 		COMET_VARIANT_CONVERTERS_EXPLICIT(DECIMAL, DECIMAL, as_decimal);
 
 		wchar_t as_wchar_t() const { return as_ushort(); }