13 Commits

Author SHA1 Message Date
John Wellbelove
7b9c598226 Changed error handling. Macros do not evaluate to true or false any more.
If ETL_LOG_ERRORS is defined then the error handler is called before the exception is thrown or the assert is called.
ETL_LOG_ERRORS may be used in conjunction with ETL_THROW_EXCEPTIONS or default assert methods. It is not valid for ETL_NO_CHECKS.
2015-12-24 12:08:04 +00:00
John Wellbelove
16a1978f43 Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
John Wellbelove
a048784285 Changed the way that errors are produced and handled.
Compile time macros control the type and verbosity of the errors to allow space and performance optimisation.
2015-12-15 19:28:12 +00:00
John Wellbelove
48919b3c15 Modified the error system.
Remove ETL_ERROR and replaced with ETL_ASSERT.
ETL_ASSERT will eveluate to 'true' in all cases except for error logging.
This will allow 'if' statements that contain the macro to be optimised away for all cases except logging.
Added ETL_NO_CHECKS and ETL_LOG_ERRORS macro checks.

The options are now:-
ETL_NO_CHECKS         ETL_ASSERT does nothing. Evaluates to 'true'.
ETL_THROW_EXCEPTIONS) ETL_ASSERT throws an exception if the condition fails. Evaluates to 'true'.
ETL_LOG_ERRORS        ETL_ASSERT logs the error if the condition fails. Evaluates to the result of the condition.
If none of the above are defined:-
NDEBUG ETL_ASSERT does nothing. Evaluates to 'true'.
Otherwise:-
ETL_ASSERT asserts if the condition fails. Evaluates to 'true'.
2015-12-11 19:02:47 +00:00
John Wellbelove
64c33cb4dd Moved non-user headers to private sub-directory. 2015-12-10 14:09:57 +00:00
John Wellbelove
5794aebd8b Created multimap_base.h and derived imultimap from it.
Moved non-type code to base classes.
2015-12-05 14:57:14 +00:00
Ryan Lindeman
426bbab41c add multimap and multiset containers 2015-04-25 20:10:13 -06:00
Ryan Lindeman
847b685e25 fix gcc compiler issues with test_map/test_set 2015-04-01 18:27:51 -06:00
Ryan Lindeman
1ec58c410d add etl::set based on etl::map 2015-03-28 14:37:38 -06:00
Ryan Lindeman
f0c5f3b8b5 finished etl:map with AVL balance 2015-03-28 12:45:10 -06:00
Ryan Lindeman
2a0ea093bd fix missing const for etl:map 2015-03-19 20:09:08 -06:00
jwellbelove
9d3a0580fb Changed std::greater<T>()) to std::greater<TMapped>()) in operator > 2015-02-10 21:02:27 +00:00
Ryan Lindeman
5e67f1502a initial release of etl::map without balance 2015-01-29 22:13:13 -07:00