Share

xstream

Tracker: Bugs

5 ambiguous overload on x86_64 - ID: 2407971
Last Update: Tracker Item Submitted ( redi )

on my GNU/Linux machine int64_t is a typedef for long, so there is no
suitable overload in xdr::ostream for the long long and unsigned long long
members in examples/xdr_test.h

this patch makes the test use the (u)int64_t types, which match the
provided overloads.

--- examples/xdr_test.h.orig 2005-07-22 18:22:12.000000000 +0100
+++ examples/xdr_test.h 2008-12-08 23:03:06.000000000 +0000
@@ -1,5 +1,6 @@
#include <vector>
#include <string>
+#include <stdint.h>

using std::vector;
using std::string;
@@ -9,8 +10,8 @@
unsigned int ui;
float f;
double d;
- long long int li;
- unsigned long long int uli;
+ int64_t li;
+ uint64_t uli;
string s;

vector<int> vi;


Jonathan Wakely ( redi ) - 2008-12-09 00:10

5

Open

None

Nobody/Anonymous

xdr

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.