From 78ada5fbd45855dc34f0be6ac29bcaf7cd7be534 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 1 Apr 2026 23:45:48 +0300 Subject: [PATCH] Upcast the pointer for calculator to a base type to employ polymorphism --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 00199b6..79fb07f 100644 --- a/main.cpp +++ b/main.cpp @@ -6,7 +6,7 @@ int main() { - auto calc = std::make_unique(); + std::unique_ptr calc = std::make_unique(); std::cout << "Initializing calculator";