On Saturday 22 May 2010 19:42:33 ext paulo wrote:
> Hi,
> I tried the following code and I could verify the following symptoms:
> - in the main routine you can access the a.i in the locals window, but 
> not in f(A&).
> - However if I add a &a to the watchers window then I can dereference 
> the struct and access the *&a.i
> 
> #include <iostream>
> 
> 
> struct A {
>       A(const int i) :i(i) {}
>       int i;
> };
> 
> 
> void f(A& a) {
>       std::cout << a.i;
> }
> 
> int main(int argc, char *argv[]) {
>       A a(1);
>       f(a);
>       return 0;
> }


Ok, this is now fixed in the 2.0 and 2.0.0 branches and will be 
merged to master later in the day.

Thanks for the report.

Andre'
_______________________________________________
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to