VirtualBox

Changeset 106498 in vbox for trunk/include/iprt/cpp


Ignore:
Timestamp:
Oct 19, 2024 3:12:39 AM (5 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165330
Message:

iprt/rest: Shut up some complains about default copy assignment operator. jiraref:VBP-1171

Location:
trunk/include/iprt/cpp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/restbase.h

    r106061 r106498  
    9595        }
    9696    }
     97
     98#if RT_CPLUSPLUS_PREREQ(201100)
     99    RTCRestJsonCursor &operator=(struct RTCRestJsonCursor const &a_rThat) = delete;
     100#endif
    97101};
    98102
     
    148152     */
    149153    virtual char *getPath(RTCRestJsonCursor const &a_rCursor, char *a_pszDst, size_t a_cbDst) const RT_NOEXCEPT;
     154
     155#if RT_CPLUSPLUS_PREREQ(201100)
     156    RTCRestJsonPrimaryCursor &operator=(RTCRestJsonPrimaryCursor const &a_rThat) = delete;
     157#endif
    150158};
    151159
  • trunk/include/iprt/cpp/restoutput.h

    r106061 r106498  
    6060    RTCRestOutputBase() RT_NOEXCEPT;
    6161    virtual ~RTCRestOutputBase();
     62
     63    RTCRestOutputBase(const RTCRestOutputBase &a_rThat) RT_NOEXCEPT;
     64    RTCRestOutputBase &operator=(const RTCRestOutputBase &a_rThat) RT_NOEXCEPT;
    6265
    6366    /**
     
    151154    virtual ~RTCRestOutputPrettyBase();
    152155
     156    RTCRestOutputPrettyBase(const RTCRestOutputPrettyBase &a_rThat) RT_NOEXCEPT;
     157    RTCRestOutputPrettyBase &operator=(const RTCRestOutputPrettyBase &a_rThat) RT_NOEXCEPT;
     158
    153159    /**
    154160     * Begins an array.
     
    228234
    229235    /* Make non-copyable (RTCNonCopyable causes warnings): */
     236#if RT_CPLUSPLUS_PREREQ(201100)
     237    RTCRestOutputToString(RTCRestOutputToString const &) = delete;
     238    RTCRestOutputToString *operator=(RTCRestOutputToString const &) = delete;
     239#else
    230240    RTCRestOutputToString(RTCRestOutputToString const &);
    231241    RTCRestOutputToString *operator=(RTCRestOutputToString const &);
     242#endif
    232243};
    233244
     
    269280
    270281    /* Make non-copyable (RTCNonCopyable causes warnings): */
     282#if RT_CPLUSPLUS_PREREQ(201100)
     283    RTCRestOutputPrettyToString(RTCRestOutputToString const &) = delete;
     284    RTCRestOutputPrettyToString *operator=(RTCRestOutputToString const &) = delete;
     285#else
    271286    RTCRestOutputPrettyToString(RTCRestOutputToString const &);
    272287    RTCRestOutputPrettyToString *operator=(RTCRestOutputToString const &);
     288#endif
    273289};
    274290
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette