You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
948 B
28 lines
948 B
From a1b2938bcf0b2bbb9156ed9ee922bc5b5a38cea7 Mon Sep 17 00:00:00 2001
|
|
From: heyyeh12 <heyyeh12@users.noreply.github.com>
|
|
Date: Sat, 27 Apr 2019 09:08:48 -0400
|
|
Subject: [PATCH] fixes issue #261 binding to temporary object
|
|
|
|
---
|
|
acado/code_generation/export_function_declaration.cpp | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/acado/code_generation/export_function_declaration.cpp b/acado/code_generation/export_function_declaration.cpp
|
|
index d6450b50..46a3269f 100644
|
|
--- a/acado/code_generation/export_function_declaration.cpp
|
|
+++ b/acado/code_generation/export_function_declaration.cpp
|
|
@@ -36,12 +36,12 @@
|
|
|
|
BEGIN_NAMESPACE_ACADO
|
|
|
|
-
|
|
+const ExportFunction& _ff = ExportFunction();
|
|
//
|
|
// PUBLIC MEMBER FUNCTIONS:
|
|
//
|
|
|
|
-ExportFunctionDeclaration::ExportFunctionDeclaration( ) : ExportStatement( ), f( ExportFunction() )
|
|
+ExportFunctionDeclaration::ExportFunctionDeclaration( ) : ExportStatement( ), f( _ff )
|
|
{}
|
|
|
|
|
|
|