Skip to content

Commit 619f11a

Browse files
committed
Update vector implementation
1 parent 00f4fb8 commit 619f11a

File tree

8 files changed

+562
-396
lines changed

8 files changed

+562
-396
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ let package = Package(
189189
openGraphCompatibilityTestTarget,
190190
openGraphSPICompatibilityTestTarget,
191191
],
192-
cxxLanguageStandard: .cxx17
192+
cxxLanguageStandard: .cxx20
193193
)
194194

195195

Sources/OpenGraph_SPI/Data/table.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define table_hpp
77

88
#include "OGBase.h"
9-
#include "../Util/vector.hpp"
9+
#include "../Vector/vector.hpp"
1010
#include <mach/vm_types.h>
1111
#include <bitset>
1212
#include <os/lock.h>

Sources/OpenGraph_SPI/Debug/og-debug-server.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "OGBase.h"
1212
#if OG_TARGET_OS_DARWIN
1313
#include "OGDebugServer.h"
14-
#include "../Util/vector.hpp"
14+
#include "../Vector/vector.hpp"
1515
#include <dispatch/dispatch.h>
1616
#include <memory>
1717

Sources/OpenGraph_SPI/Debug/og-debug-server.mm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@
165165
return;
166166
}
167167
fcntl(server->sockfd, F_SETFD, O_WRONLY);
168-
server->connections.push_back(std::unique_ptr<Connection>(new Connection(server, sockfd)));
168+
// FIXME: Link issue about vector
169+
// server->connections.push_back(std::unique_ptr<Connection>(new Connection(server, sockfd)));
169170
}
170171

171172
CFURLRef _Nullable OG::DebugServer::copy_url() const {
@@ -225,7 +226,8 @@
225226
auto it = connections.begin();
226227
for (; it != connections.end(); it++) {
227228
if (it->get() == connection) {
228-
connections.pop_back();
229+
// FIXME: Link issue about vector
230+
// connections.pop_back();
229231
return;
230232
}
231233
}

Sources/OpenGraph_SPI/Util/vector.hpp

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)