mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-21174 Delete not-to-be-used methods. Add a constructor warning.
This commit is contained in:
parent
abdf0e667d
commit
66d8df5338
1 changed files with 7 additions and 4 deletions
|
@ -297,6 +297,9 @@ public:
|
|||
* Automatically allocates the heap array if the argument is larger than the stack capacity.
|
||||
* Intended for use when an approximate capacity is known at compile time but the true
|
||||
* capacity is not known until runtime.
|
||||
*
|
||||
* WARNING: does not report errors upon memory allocation failure, after
|
||||
* which capacity will be stackCapacity, not the requested newCapacity.
|
||||
*/
|
||||
MaybeStackArray(int32_t newCapacity) : MaybeStackArray() {
|
||||
if (capacity < newCapacity) { resize(newCapacity); }
|
||||
|
@ -396,11 +399,11 @@ private:
|
|||
needToRelease=FALSE;
|
||||
}
|
||||
/* No comparison operators with other MaybeStackArray's. */
|
||||
bool operator==(const MaybeStackArray & /*other*/) {return FALSE;}
|
||||
bool operator!=(const MaybeStackArray & /*other*/) {return TRUE;}
|
||||
bool operator==(const MaybeStackArray & /*other*/) = delete;
|
||||
bool operator!=(const MaybeStackArray & /*other*/) = delete;
|
||||
/* No ownership transfer: No copy constructor, no assignment operator. */
|
||||
MaybeStackArray(const MaybeStackArray & /*other*/) {}
|
||||
void operator=(const MaybeStackArray & /*other*/) {}
|
||||
MaybeStackArray(const MaybeStackArray & /*other*/) = delete;
|
||||
void operator=(const MaybeStackArray & /*other*/) = delete;
|
||||
};
|
||||
|
||||
template<typename T, int32_t stackCapacity>
|
||||
|
|
Loading…
Add table
Reference in a new issue