Skip to content

Commit 4dc8a8a

Browse files
committed
Fixed compilation error /home/runner/work/bin2cpp/bin2cpp/src/bin2cpp/main.cpp:243:33: error: cannot bind non-const lvalue reference of type ‘bin2cpp::INameProvider&’ to an rvalue of type ‘bin2cpp::INameProvider’ on Linux and macOS.
1 parent 7c40328 commit 4dc8a8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin2cpp/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ int main(int argc, char* argv[])
239239
args.version = false;
240240

241241
Context c;
242-
INameProvider& nameProvider = LegacyNameProvider();
242+
LegacyNameProvider legacyNameProvider;
243+
INameProvider& nameProvider = legacyNameProvider;
243244
std::string dummy;
244245

245246
//help

0 commit comments

Comments
 (0)