Home > Back-end >  C type is not clear
C type is not clear

Time:10-24

Why complains the is_same

CodePudding user response:

Because a is_same in STL, while you use the using namespace STD. Remove the your is_same function to change a name or using namespace STD.

CodePudding user response:

reference 1st floor SleekStone response:
because a is_same in STL, while you use the using namespace STD. Remove the your is_same function to change a name or using namespace STD.

STL is what? , using namespace STD there is_name is this why?

CodePudding user response:

Using namespace STD use compile namespace instruction, when the same name will not error
So the book says, had better not directly using the namespace
Using cout but this
STD: : cout or such use

CodePudding user response:

STL is a library of c + + standard library, there are a lot of things can be used, the cout and you endl is what's inside the STL, the function in the STL or class in the namespace STD, is_same in STL is whether two types
  • Related