मैं सिर्फ जीसीसी में निम्न चेतावनी भर में भाग गया के बारे में चेतावनी:जीसीसी निहित भिन्नता
warning: implicit dereference will not access object of type ‘volatile util::Yield’ in statement [enabled by default]
इस कोड को संयोजित करते समय:
volatile util::Yield y1;
util::Yield y2;
y1 += y2; // <--- Warning triggered here.
और दुर्भाग्य से मैं काफी समझ में नहीं आता क्या जीसीसी बताने के लिए कोशिश कर रहा है मुझे ...
वर्ग यील्ड इस प्रकार घोषित किया जाता है:
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;
// Other operators snipped...
};
कोई विचार?
धन्यवाद!
यह चेतावनी सी ++ 11 के लिए अप्रचलित होनी चाहिए क्योंकि सी ++ 11 में फ़ंक्शन कॉल का लालसा अब और नहीं पढ़ा जाएगा। –