11 Commits

Author SHA1 Message Date
Glen Fernandes
ec67130557 Correct include order 2019-08-29 04:04:09 -04:00
Glen Fernandes
4403017952 Rewrite factory and value_factory
- Support r-value arguments
- Use variadic templates for arbitrary arguments
- Support allocators that are final
- Support allocators that use fancy pointers
- Support environments with disabled exceptions
- Improve compilation times
2019-08-27 06:55:37 -04:00
Daniel James
3697941e27 Call 'make_pointer' outside of try, catch block
If an exception is thrown in the constructor of a smart pointer,
then the smart pointer should handle deallocating the memory.
If this was inside the try block, then the catch block would
deallocate the memory a second time.
2017-12-17 12:47:03 +00:00
Daniel James
b378d0336c Use allocator_traits::construct and destroy 2017-12-17 12:47:03 +00:00
Daniel James
3dc4f33ad5 Don't call deallocate with null pointers 2017-12-17 12:16:08 +00:00
Daniel James
65a6556800 Use alloator_traits for allocate/deallocate 2017-12-17 12:05:54 +00:00
Daniela Engert
4a6944adbc replace members of std::allocate which are deprecated in c++17 by their cousins from std::allocator_traits.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-12-17 09:59:59 +01:00
Daniel James
188c8d4c5d Change default factory allocator to 'void'.
To remove the dependency on Boost.Optional. Supplied a macro for
backwards compatibility, but that will be removed in a future release.
2015-01-10 13:08:03 +00:00
Tobias Schwinger
453a20706f adds missing template parameters for partial specialisations
[SVN r51392]
2009-02-22 16:27:22 +00:00
Tobias Schwinger
23956c0360 straightens visibility issues
[SVN r51359]
2009-02-20 23:36:42 +00:00
Tobias Schwinger
a993802fcf introduces functional/ forward & factory
[SVN r49956]
2008-11-27 15:14:40 +00:00