Bug #73751 get rid of dynamic_array in C++ code
Submitted: 28 Aug 2014 9:25 Modified: 3 Sep 2014 15:36
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.7 OS:Any
Assigned to: CPU Architecture:Any

[28 Aug 2014 9:25] Tor Didriksen
Description:
After a series of about 50 patches, all titled
GET RID OF DYNAMIC_ARRAY IN ....
we are finally done. No more use of it in C++code

Now, hide it form C++ code.

How to repeat:
Read the code.

Suggested fix:
Remove unused functions in mysys/array.c
Remove unused declarations and #defines in include/my_sys.h

// Use Prealloced_array or std::vector or something similar in C++
#ifdef __cplusplus

#define init_dynamic_array please_use_an_appropriately_typed_container
#define my_init_dynamic_array please_use_an_appropriately_typed_container

#else
[3 Sep 2014 15:36] Paul DuBois
Fixed in 5.7.6. Code cleanup. No changelog entry needed.