Skip to content

Commit 0a04157

Browse files
author
JohannesFranz
authored
Cut unnecessary variables
In main S s, *pS; int S::*ptm; seem to have no function. (In case there is some hidden functionality I would be very interested to learn about it.) Best Regards, Johannes
1 parent 3c8b2e3 commit 0a04157

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/cpp/template-specialization-cpp.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ struct S{};
4242
extern "C" int printf_s(const char*,...);
4343

4444
int main() {
45-
S s, *pS;
46-
int S::*ptm;
4745
printf_s("PTS<S>::IsPointer == %d PTS<S>::IsPointerToDataMember == %d\n",
4846
PTS<S>::IsPointer, PTS<S>:: IsPointerToDataMember);
4947
printf_s("PTS<S*>::IsPointer == %d PTS<S*>::IsPointerToDataMember ==%d\n"
@@ -320,4 +318,4 @@ Sorted list:
320318
{100, apple}
321319
{101, banana}
322320
{103, dog}
323-
```
321+
```

0 commit comments

Comments
 (0)