Skip to content

Commit

Permalink
Update project to require C++17 (#1266)
Browse files Browse the repository at this point in the history
For #1241 

Signed-off-by: osama <[email protected]>
  • Loading branch information
OsamaRab3 authored Sep 3, 2024
1 parent ec328ab commit 359aeea
Show file tree
Hide file tree
Showing 9 changed files with 2,110 additions and 270 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![Build Status](https://github.com/p4lang/behavioral-model/workflows/Test/badge.svg?branch=main)

This is the second version of the reference P4 software switch, nicknamed bmv2
(for behavioral model version 2). The software switch is written in C++11. It
(for behavioral model version 2). The software switch is written in C++17. It
takes as input a JSON file generated from your P4 program by a [P4
compiler](https://github.com/p4lang/p4c) and interprets it to implement the
packet-processing behavior specified by that P4 program.
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ LT_INIT

AC_CONFIG_MACRO_DIR([m4])

# enforce -std=c++11
AX_CXX_COMPILE_STDCXX_11([noext],[mandatory])
# enforce -std=c++17
AX_CXX_COMPILE_STDCXX_17([noext],[mandatory])

# Checks for header files.
AC_LANG_PUSH(C)
Expand Down
Loading

0 comments on commit 359aeea

Please sign in to comment.