Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 3:bdd07af32afe, committed 2017-01-20
- Comitter:
- aerialspecs
- Date:
- Fri Jan 20 15:10:27 2017 +0000
- Parent:
- 2:82fa1c7a259f
- Commit message:
- Removed default constructor from ArrayList. Embedded environment is too constrained to allow for arbitrary sizing.
Changed in this revision
ArrayList.h | Show annotated file Show diff for this revision Revisions of this file |
ArrayList.hpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ArrayList.h Fri Jan 20 15:07:53 2017 +0000 +++ b/ArrayList.h Fri Jan 20 15:10:27 2017 +0000 @@ -41,11 +41,6 @@ class ArrayList { public: /** - * \brief Default Constructor. Creates an ArrayList with an array size of 4. - */ - ArrayList(); - - /** * \brief Creates a new ArrayList with an array size specified by usize. * * \param usize An unsigned byte specifying the array size, or the maximum number
--- a/ArrayList.hpp Fri Jan 20 15:07:53 2017 +0000 +++ b/ArrayList.hpp Fri Jan 20 15:10:27 2017 +0000 @@ -27,12 +27,6 @@ namespace mbed { namespace sketchlet { -template <class T> ArrayList<T>::ArrayList() { - this->usize = ARRAYLIST_DEFAULT_SIZE; - this->elements = new T[this->usize]; - this->index = 0; -} - template <class T> ArrayList<T>::ArrayList(uint8_t usize) { this->usize = usize; this->elements = new T[this->usize];