We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22100e0 commit bf0cb21Copy full SHA for bf0cb21
07_SimpleCppApp/main.cpp
@@ -54,7 +54,7 @@ class FunctionPreCacher
54
}
55
56
57
- void Print()
+ void Print() const
58
{
59
if (values)
60
@@ -70,6 +70,11 @@ class FunctionPreCacher
70
int32_t(*function)(int32_t x) = nullptr;
71
};
72
73
+void PrintPc(const FunctionPreCacher& pc)
74
+{
75
+ pc.Print();
76
+}
77
+
78
int main()
79
80
int32_t x;
@@ -81,5 +86,5 @@ int main()
81
86
82
87
FunctionPreCacher pc(x, count, &f);
83
88
pc.Compute();
84
- pc.Print();
89
+ PrintPc(pc);
85
90
0 commit comments