Jason
76c4651202
Removed clang.format changes
2022-01-10 13:44:58 -08:00
Jason
5f739d3e26
Declare variables as inline
...
Declare empty_guid and guid_encoder as inline to fix multiple defined
symbol errors when compiling with clang++.
2022-01-04 07:26:47 -08:00
Kevin Saul
8723ae1a33
Fix operator<< compiler error when c++20 enabled
2021-12-30 17:51:08 +13:00
Marius Bancila
4400e13797
Merge pull request #52 from sketchylizard/master
...
Fix compiler warnings for gcc & clang
2021-12-24 00:20:03 +02:00
Jason
d393e00037
Fix compiler warnings for gcc & clang
...
When compiling with -Wimplicit-int-conversion and -Wsign-conversion
gcc/clang give warnings for a handful of lines. Silence the warnings
by adding explicit casts.
2021-12-23 08:44:37 -08:00
Riccardo Corsi
b6f1515be5
Implement stream operator<< in terms of the faster to_string() method.
2021-12-23 10:56:25 +01:00
Marius Bancila
7a3e380c21
specified size
2021-12-23 01:05:33 +02:00
Marius Bancila
5458877f2c
faster std::hash<uuid> implementation
2021-12-23 01:00:23 +02:00
Marius Bancila
8e9d0f87f5
fast to_string() implementation
2021-12-23 00:33:04 +02:00
Marius Bancila
8068131ec3
check CoCreateGuid return value
2021-12-22 19:41:06 +02:00
Jason
5baab46e60
Remove old style casts to avoid warnings
...
When compiling with -Wold-style-cast clang warns about the old style
casts in uuid.h. Replace them with static_cast to avoid the warnings.
2021-12-17 08:12:20 -08:00
Tushar Maheshwari
1562616dab
fix short overflow UB
2021-06-25 01:10:48 +05:30
Tushar Maheshwari
85c8e28973
Enable generator tests on Windows CI
...
- Reduce included windows headers
- Reduce scope of time-generator dependencies
2021-06-17 22:27:12 +05:30
Marius Bancila
9e5162c3d3
Merge pull request #34 from EvanBalster/master
...
Remove Windows dependency (disable uuid_time_generator by default)
2021-06-14 09:54:58 +03:00
Tushar Maheshwari
2e49ce59f4
Remove redundant from_string overload
2021-06-12 11:33:41 +05:30
Tushar Maheshwari
b16884a774
allow basic_string_view parameter
...
- uuid::is_valid_uuid
- uuid::from_string
- uuid_name_generator::operator()
2021-05-16 13:18:21 +05:30
EvanBalster
359b195c78
uuid_time_generator disabled, eliminating Windows dependency; #define UUID_TIME_GENERATOR to re-enable
2020-12-27 14:36:17 -08:00
Marius Bancila
1b74bbc183
Merge pull request #28 from egor-spk/refactor-cmake-project
...
Refactor cmake project
2020-11-09 11:12:42 +02:00
Marius Bancila
afef8d228d
Merge pull request #29 from egor-spk/fix-warnings
...
remove unused variable
2020-11-09 11:11:40 +02:00
Egor Kuzmin
40c08315a7
remove unused variable
2020-11-05 18:05:43 +03:00
Egor Kuzmin
85ff00a004
using std::span from c++20
...
- Added the ability to use span from std when standard 20 is enabled.
- Previous catch version didn't work with 20 standard.
2020-11-05 10:34:56 +03:00
OptoCloud
da98fcf5ee
Remove [-Wconversion] warning in GCC
...
And i cleaned it up a little, casting the value to a uint8 is guaranteed to mask it to a byte
2020-10-29 12:23:44 +01: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
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