Skip to content

Commit 3b6aadc

Browse files
committed
Adding back the anonymous for parseVal to see if that satisfies the msvc
1 parent 8cf693d commit 3b6aadc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/dbc.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#include <regex>
77

8-
namespace libdbc {
8+
namespace {
99

1010
const auto floatPattern = "(-?\\d+\\.?(\\d+)?)"; // Can be negative
1111

@@ -27,7 +27,6 @@ const auto whiteSpace = "\\s";
2727

2828
enum VALToken { Identifier = 0, CANId, SignalName, Value, Description };
2929

30-
struct VALObject;
3130
struct VALObject {
3231
uint32_t can_id;
3332
std::string signal_name;
@@ -141,6 +140,10 @@ bool parseVal(const std::string& str, VALObject& obj) {
141140
return false;
142141
}
143142

143+
} // Anonyomous namespace
144+
145+
namespace libdbc {
146+
144147
DbcParser::DbcParser()
145148
: version("")
146149
, nodes()

0 commit comments

Comments
 (0)