From c8700c36460615d056ed58651595fd932683895b Mon Sep 17 00:00:00 2001 From: vishalmishraa Date: Sat, 24 Aug 2024 19:16:06 +0530 Subject: [PATCH] fix C boiler generator --- .../src/GenerateFullBoilerplate/generateFullCpp.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/boilerplate-generator/src/GenerateFullBoilerplate/generateFullCpp.ts b/apps/boilerplate-generator/src/GenerateFullBoilerplate/generateFullCpp.ts index df98cf0..6038433 100644 --- a/apps/boilerplate-generator/src/GenerateFullBoilerplate/generateFullCpp.ts +++ b/apps/boilerplate-generator/src/GenerateFullBoilerplate/generateFullCpp.ts @@ -18,7 +18,7 @@ export default function generateFullCpp({ }) .join("\n "); const outputType = outputFields[0].type; - const functionCall = `std::${outputType} result = ${functionName}(${inputFields.map((field) => field.name).join(", ")});`; + const functionCall = `${outputType} result = ${functionName}(${inputFields.map((field) => field.name).join(", ")});`; const outputWrite = `std::cout << result << std::endl;`; return ` #ifndef _GLIBCXX_NO_ASSERT @@ -109,7 +109,6 @@ export default function generateFullCpp({ #include #endif - using namespace std; ##USER_CODE_HERE##