Commit Graph

42 Commits

Author SHA1 Message Date
60944ec71e [*] Reformat because 3 space indents were doing my head in
[*] Obliterate string streams because why the hell would we EVER want the overhead of streams and arbitrary allocs when merely stringifying a uuid
2022-02-27 07:49:13 +00:00
47d09d4dc7 This library is a meme. STD invasion, GSL bloat, introduces GSL/Span conflicts, strict templates specifically for std types when such could be reduced to a generic type for further portablity, has generators we shouldn't need or are outright unsafe... Everyone, this is who writes your C++ books. 2022-02-27 07:01:10 +00:00
Marius Bancila
324ebf37fc uuid_system_generator conditioned by UUID_SYSTEM_GENERATOR macro 2020-09-10 00:44:26 +03:00
Marius Bancila
921f01fbea
Merge pull request #18 from kamrann/minor-fixes
Minor changes to preprocessor directives
2020-09-09 23:16:39 +03:00
Marius Bancila
1b12059d1a
Merge pull request #19 from dkowl/master
clang constant conversion warning fix
2020-09-09 23:15:26 +03:00
Riccardo Corsi
904224fbfc Stream << operator: restore original flags after streaming the uuid 2020-09-09 15:42:02 +02:00
dkowl
48a02dd8da clang warning fix 2020-01-03 19:37:38 +01:00
Cameron Angus
6bd1e3bb78 Moved Windows defines before objbase.h includes, since it can include windows.h.
Wrapped defines in order to avoid redefinition warnings/errors under strict compilation settings.
2019-12-07 18:10:51 +00:00
Cameron Angus
4179dacce4 Fixed preprocessor directive for when no system defines exist. 2019-12-07 18:06:01 +00:00
Marius Bancila
7bd86a11e3 test time gen only on Windows 2019-05-17 15:55:43 +03:00
Marius Bancila
b74a5eb7e9 - updates after Kona
- new constructors
- namespace constants for name-based uuids
2019-05-17 12:33:35 +03:00
Marius Bancila
e0a781d245 uuid is class
noexcept on several functions
2019-02-20 01:25:17 +02:00
Marius Bancila
8a056e7436 trivial implementation for time-based uuid generator 2019-01-09 16:04:49 +02:00
Marius Bancila
7a0f71cb10 const references and function templates 2019-01-09 11:25:14 +02:00
Marius Bancila
bc37fa250b revision based on LEWGI feedback from San Diego 2019-01-08 16:46:19 +02:00
Michał Janiszewski
257fec44b6 Drop constexpr from uuid::as_bytes() due to reinterpret_cast 2018-08-05 00:26:59 +02:00
Michał Janiszewski
99d1fade3a Explicitly initialise member fields, as required by constexpr 2018-08-05 00:23:08 +02:00
Michał Janiszewski
adb24b3d9d Ensure structs get defined in correct order
uuid_version tried to use (yet) unknown uuid_error. Reorder their
definitions to address this issue.
2018-08-05 00:01:20 +02:00
Michał Janiszewski
2e07420571 Add missing include for memcmp
memcmp is defined in cstring, yet it wasn't included in the files that
tried using it.
2018-08-05 00:00:26 +02:00
Marius Bancila
ca9f84418c using instead of typedef 2018-06-29 10:33:08 +03:00
Marius Bancila
a296a1359f from_string is static member of uuid 2018-06-29 09:38:26 +03:00
Marius Bancila
f93f0cda5a removed non-const as_bytes 2018-06-29 09:34:09 +03:00
Marius Bancila
6e8f536a4a constexpr added 2018-06-29 09:33:38 +03:00
Marius Bancila
54b54bdab5 revision 1 based on standard committe and community feedback 2018-06-27 11:27:00 +03:00
Marius Bancila
4e27a1e02a added GSL for span implementation 2018-06-27 11:26:35 +03:00
Marius Bancila
13c6d59115 to_string() is inline
warnigns fixed
use catch testing framework
2018-05-15 09:41:49 +03:00
Marius Bancila
e1f1a1e59e renamed nil() to is_nil() 2018-05-14 16:42:38 +03:00
Marius Bancila
8761a7ed7e uuid_default_system -> uuid_system_generator 2018-01-31 09:05:04 +02:00
Marius Bancila
ea43f4b9ba sha1 name generator 2018-01-17 12:17:31 +02:00
Marius Bancila
9b1ef4f116 constructors implementation 2018-01-16 16:35:48 +02:00
Marius Bancila
0a16c0c079 uuid iterators 2018-01-15 17:20:14 +02:00
Marius Bancila
042f8aeb82 remove uuid.cpp 2018-01-15 16:32:29 +02:00
Marius Bancila
998051d922 string conversion as free functions 2018-01-15 16:30:13 +02:00
Marius Bancila
4ba249e947 make_uuid replaced with uuid_default_generator 2018-01-15 10:40:19 +02:00
Marius Bancila
8353b03ebc std::byte replaced with uint_8 2018-01-15 10:29:32 +02:00
Marius Bancila
ba56824f4c future renamed to reserved 2017-12-20 08:39:20 +02:00
Marius Bancila
e7186f0092 std::byte instead of uint_8, constructors 2017-12-19 11:53:42 +02:00
mariusbancila
9792260b00
use braces for array init 2017-12-18 23:32:38 +02:00
Marius Bancila
0f201b195c more tests 2017-12-18 16:13:04 +02:00
Marius Bancila
989e5dd661 nil instead of is_nil 2017-12-18 14:23:52 +02:00
Marius Bancila
0193b64fd5 operator<, uuids_version, new tests 2017-12-09 23:56:40 +02:00
Marius Bancila
7c14506085 cmake project 2017-12-09 01:03:06 +02:00