Skip to content

Commit 2bc77ad

Browse files
committed
➖ Remove tcp::span, use C++20 std::span instead
1 parent bc1cb56 commit 2bc77ad

30 files changed

+33
-759
lines changed

actor_model/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ idf_component_register(
1414
"src"
1515
"${CMAKE_CURRENT_BINARY_DIR}/src/gen"
1616
REQUIRES
17-
"span"
1817
"uuid"
1918
PRIV_REQUIRES
2019
"esp_ringbuf"

actor_model/src/mailbox.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
#include "actor_model_generated.h"
1818

19-
#include "tcb/span.hpp"
20-
19+
#include <span>
2120
#include <string_view>
2221
#include <unordered_map>
2322

@@ -27,7 +26,7 @@
2726

2827
namespace ActorModel {
2928
using MessageType = std::string_view;
30-
using BufferView = tcb::span<const uint8_t>;
29+
using BufferView = std::span<const uint8_t>;
3130

3231
class ReceivedMessage;
3332

actor_model/src/received_message.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
#include "mailbox.h"
1616

17-
#include "tcb/span.hpp"
17+
#include <span>
1818

1919
namespace ActorModel {
20-
using BufferView = tcb::span<const uint8_t>;
20+
using BufferView = std::span<const uint8_t>;
2121

2222
class Mailbox;
2323

base64/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ idf_component_register(
66
INCLUDE_DIRS
77
"lib/libb64/include"
88
"src"
9-
PRIV_REQUIRES
10-
"span"
119
)
1210

1311

base64/src/base64.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
*/
1010
#pragma once
1111

12-
#include "tcb/span.hpp"
13-
12+
#include <span>
1413
#include <vector>
1514

1615
#include <stdio.h>
1716

1817
namespace base64 {
1918
using Buffer = std::vector<uint8_t>;
20-
using BufferView = tcb::span<const uint8_t>;
19+
using BufferView = std::span<const uint8_t>;
2120

2221
auto encode(BufferView in)
2322
-> Buffer;

embedded_files/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
idf_component_register(
22
INCLUDE_DIRS
33
"src"
4-
REQUIRES
5-
"span"
64
)

embedded_files/src/embedded_files_string_view_wrapper.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
#pragma once
1212

13-
#include "tcb/span.hpp"
14-
13+
#include <span>
1514
#include <string_view>
1615

1716
#define DECLARE_STRING_VIEW_WRAPPER(file_name_with_ext) \
@@ -29,7 +28,7 @@
2928
asm("_binary_" #file_name_with_ext "_start"); \
3029
extern const uint8_t file_name_with_ext ## _end[] \
3130
asm("_binary_" #file_name_with_ext "_end"); \
32-
const tcb::span<const uint8_t> file_name_with_ext( \
31+
const std::span<const uint8_t> file_name_with_ext( \
3332
file_name_with_ext ## _start, \
3433
file_name_with_ext ## _end - file_name_with_ext ## _start \
3534
)

flatbuffers/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ idf_component_register(
66
INCLUDE_DIRS
77
"lib/flatbuffers/include"
88
"src"
9-
REQUIRES
10-
"span"
119
)
1210

1311
target_compile_options(

flatbuffers/src/flatbuffers_utils.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99
*/
1010
#pragma once
1111

12-
#include "tcb/span.hpp"
13-
12+
#include <span>
1413
#include <string_view>
1514

16-
using GenericFlatbuffer = tcb::span<const uint8_t>;
15+
using GenericFlatbuffer = std::span<const uint8_t>;
1716
using FlatbufferSchema = std::string_view;
1817

1918
struct Bounds

googleapis/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ idf_component_register(
66
INCLUDE_DIRS
77
"src"
88
"${CMAKE_CURRENT_BINARY_DIR}/src/gen"
9-
REQUIRES
10-
"span"
119
PRIV_REQUIRES
1210
"actor_model"
1311
"embedded_files"

0 commit comments

Comments
 (0)