Skip to content

Commit 77219c4

Browse files
authored
fix(field): wrong container type for bytes_field (#48)
* fix(field): wrong container type for bytes_field Signed-off-by: PragmaTwice <twice@apache.org> * fix CI Signed-off-by: PragmaTwice <twice@apache.org> --------- Signed-off-by: PragmaTwice <twice@apache.org>
1 parent c81bb3b commit 77219c4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ jobs:
2323
strategy:
2424
matrix:
2525
include:
26-
- os: ubuntu-20.04
26+
- os: ubuntu-22.04
2727
type: Debug
2828
cxx: gcc
29-
- os: ubuntu-20.04
29+
- os: ubuntu-22.04
3030
type: Release
3131
cxx: gcc
3232
coverage: -DCMAKE_CXX_FLAGS=--coverage
33-
- os: ubuntu-20.04
33+
- os: ubuntu-22.04
3434
type: Debug
3535
cxx: clang
36-
- os: ubuntu-20.04
36+
- os: ubuntu-22.04
3737
type: Release
3838
cxx: clang
3939
- os: windows-2019

.github/workflows/doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
doc:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212
steps:
1313
- uses: actions/checkout@v2
1414
with:

include/protopuf/field.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ namespace pp {
211211
using string_field = field<S, N, string_coder, A, Container>;
212212

213213
/// Type alias for bytes fields
214-
template <basic_fixed_string S, uint<4> N, attribute A = singular, typename Container = std::vector<std::vector<std::byte>>>
214+
template <basic_fixed_string S, uint<4> N, attribute A = singular, typename Container = std::vector<std::vector<uint<1>>>>
215215
using bytes_field = field<S, N, bytes_coder, A, Container>;
216216

217217
/// Type alias for boolean fields

0 commit comments

Comments
 (0)