[C++-sig] access struct inside class
Simon Norberg
simon at dackbrann.net
Mon Oct 15 20:48:53 CEST 2007
Hello
Thanks for ypur replay
whit your proposed change i get:
test.cpp: In function ‘void init_module_test()’:
test.cpp:36: error: ‘Customers::address’ cannot appear in a
constant-expression
test.cpp:36: error: template argument 1 is invalid
test.cpp:37: error: ‘class Customers::address’ is not a class or namespace
error: command 'gcc' failed with exit status 1
make: *** [default] Fel 1
one error down 3 more to go
Nicolas Lelong wrote:
> Hello,
>
> it should be
>
> &Customers::address::contact
>
> not
>
> &Customers::address.contact
>
> ...
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>
>
More information about the Cplusplus-sig
mailing list