[odb-users] Question about type conversion in "Hello" example
Boris Kolpackov
boris at codesynthesis.com
Thu Jan 7 10:26:20 EST 2016
Hi Rudy,
Rudy Depena <rudy.depena at gmail.com> writes:
> I can see that while the return type for persist() is typename
> object_traits<T>::id_type, the type of john_id is unsigned long. How is
> this not a compiler error such as the following?
object_traits<T>::id_type is the type alias (typedef) for the object's
id member type. Since the id type for person in this example is unsigned
long, all is good.
Boris
More information about the odb-users
mailing list