Hi All, 

I have a habit of using size_t for my IDs and stuff, and have discovered that, 
with SOCI 2.2, there is no specialization for the template 
exchange_trait<unsigned int>. For 64bit, size_t maps to something else, and is 
fine (or caught by something else). But 32bit, I'm getting compiler errors. 

I was able to make the errors go away by adding the following lines to my own 
headers:

namespace soci {
namespace details {

template <>
struct exchange_traits<unsigned int>
{
        typedef basic_type_tag type_family;
        enum { x_type = x_integer };
};

}
}

I assume that using x_integer as the type is OK. I'm not sure if this is 
something that needs to be reported as a bug, or not. 


_________________________________________________________________
Windows Live™ Hotmail®:…more than just e-mail.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_more_042009
------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to