I just met the following warning in GCC:
warning: implicit dereference will not access object of type 'volatile util::Yield' in statement [enabled by default]
when compiling this code:
volatile util::Yield y1; util::Yield y2; y1 += y2;
and unfortunately, I donβt quite understand what the GCC is trying to tell me ...
The class output is declared as follows:
class Yield { public: Yield(); Yield &operator+=(Yield const &other); Yield &operator+=(Yield const volatile &other); Yield volatile &operator+=(Yield const &other) volatile; Yield volatile &operator+=(Yield const volatile &other) volatile;
Any ideas?
Thanks!
zennehoy
source share