Commit Graph

26 Commits

Author SHA1 Message Date
95c6d56cf9 Make elems parameters const 2014-03-03 14:09:41 +11:00
b1e5c5c309 Make elems function constexpr 2013-09-20 17:33:25 +10:00
5ac2e6e26b Remove unneeded clang path for elems 2013-02-26 17:51:34 +11:00
8c5dd1eea1 Fixup whitespace 2012-06-20 16:48:29 +10:00
6ff8405c6a Allow sign_cast to same type 2012-06-13 16:01:42 +10:00
f9cc4926f2 Categorise functionality from types.hpp 2012-05-25 15:19:07 +10:00
4f5d75a1df Make all check macros uppercase 2012-05-11 12:34:21 +10:00
77942e008d Change my email to an active domain 2012-04-23 13:10:50 +10:00
18b862350a Add traits helpers for dereferencable types 2012-04-13 11:30:50 +10:00
af05331358 Move sign function to maths.hpp 2012-04-13 11:23:55 +10:00
f499779ffc Use forwarding for make_unique arguments 2012-01-04 17:04:17 +11:00
a4e6f67bc5 Add fourcc type 2011-08-29 14:32:12 +10:00
b642590ab2 Update a missing required header 2011-07-29 17:37:05 +10:00
3a13bdfa34 Add missing licencing headers 2011-07-20 20:34:46 +10:00
31796b34f6 Add pure annotation to simple maths and ntoh funcs 2011-07-16 15:53:53 +10:00
64448e7e5e Add a make_unique implementation 2011-07-16 14:47:34 +10:00
bc30b7c197 Initial trunc_cast implementation 2011-07-05 23:19:00 +10:00
be643f96d7 Remove now unnecessary sign_type template helper 2011-07-05 23:06:41 +10:00
6910ef10b9 New sign_cast implementation using SFINAE
* Uses enable_if to guarantee same size types for argument/return
* Uses type_traits to check signedness for specialisation
2011-07-05 22:55:18 +10:00
128d46d9ad Use explicit sized integer types for sign_types<T>
When we used size_t/ssize_t they conflicted with the system's word sized
integers. This should work well for all the numeric types we're likely
to see.
2011-07-03 16:08:36 +10:00
212dcbfbd8 Add sign_types specialisation for size_t/ssize_t 2011-06-23 22:06:52 +10:00
898d082fb0 Expand brief documentation for classes 2011-06-23 22:06:28 +10:00
c8804cbe8e Added generic hton and ntoh functions 2011-06-21 23:36:51 +10:00
f924c990df Add template based elems implementation 2011-06-21 20:16:39 +10:00
4891c6af0e Add sign_cast functions
These safely cast between signed and unsigned numeric quantities,
aborting if the result cannot be safely converted (as opposed to size
expanding or throwing).
2011-06-15 22:38:58 +10:00
745e06d1af initial import from waif 2011-05-23 17:18:52 +10:00