Skip to content

Commit

Permalink
Update cpp_has_something.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
guanqp authored Dec 18, 2019
1 parent e6ee96e commit 6b77886
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpp_has_something.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ class test
{
public:
test(){
// check the existence of "sayHi"
cout << "has_member(T, heading) " << temp_has_member(typename T:: value_type, heading) << endl;
// check the existence of "heading", T as vector<value_type>
cout << "container has_member(T, heading) " << temp_has_member(typename T:: value_type, heading) << endl;
// If T is just a template without cantianer, it will be easier:
cout << "has_member(T, heading) " << temp_has_member(T, heading) << endl;
cout << endl;
}
~test(){}
Expand Down

0 comments on commit 6b77886

Please sign in to comment.