Skip to content

Commit dfd5c79

Browse files
ci: Add macos-13 and macos-14; Fix construct_at compiler error for macos-13 and macos-14. (y-scope#141)
Co-authored-by: SharafMohamed <[email protected]>
1 parent 3b2fbcd commit dfd5c79

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
strategy:
3232
matrix:
3333
os:
34+
- "macos-13"
35+
- "macos-14"
3436
- "macos-15"
3537
- "ubuntu-22.04"
3638
- "ubuntu-24.04"

src/log_surgeon/Token.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ void Token::append_context_to_logtype(
5151
if (reg_start_positions[j] < 0) {
5252
continue;
5353
}
54-
variable_positions.emplace_back(
55-
static_cast<uint32_t>(reg_start_positions[j]),
56-
static_cast<uint32_t>(reg_end_positions[j]),
57-
capture_id
54+
variable_positions.push_back(
55+
{static_cast<uint32_t>(reg_start_positions[j]),
56+
static_cast<uint32_t>(reg_end_positions[j]),
57+
capture_id}
5858
);
5959
}
6060
}
@@ -64,7 +64,7 @@ void Token::append_context_to_logtype(
6464
variable_positions.end(),
6565
[](auto const& a, auto const& b) { return a.m_start_pos < b.m_start_pos; }
6666
);
67-
variable_positions.emplace_back(m_end_pos, m_end_pos, 0);
67+
variable_positions.push_back({m_end_pos, m_end_pos, 0});
6868

6969
uint32_t prev{m_start_pos};
7070
for (auto const& variable_position : variable_positions) {

0 commit comments

Comments
 (0)