Skip to content

Commit 6f7a227

Browse files
authored
Merge pull request #5 from BillyONeal/port-vcpkg
Avoid C++20 designated initializers.
2 parents ebfad69 + 83b6261 commit 6f7a227

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/oatpp-mongo/bson/Utils.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Utils::BO_TYPE Utils::FLOAT_BO = detectFloatBO();
3434

3535
Utils::BO_TYPE Utils::detectIntBO() {
3636
BO_TYPE result = BO_TYPE::UNKNOWN;
37-
BO_CHECK check {.i64 = 255};
37+
BO_CHECK check;
38+
check.i64 = 255;
3839
if(check.bytes[0] == 255) {
3940
result = BO_TYPE::LITTLE;
4041
} else if(check.bytes[7] == 255) {
@@ -45,7 +46,8 @@ Utils::BO_TYPE Utils::detectIntBO() {
4546

4647
Utils::BO_TYPE Utils::detectFloatBO() {
4748
BO_TYPE result = BO_TYPE::UNKNOWN;
48-
BO_CHECK check {.f64 = 2.0};
49+
BO_CHECK check;
50+
check.f64 = 2.0;
4951
if(check.bytes[0] > 0) {
5052
result = BO_TYPE::NETWORK;
5153
} else if(check.bytes[7] > 0) {

0 commit comments

Comments
 (0)