Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef std::list<boost::any> Any_List_Type;
- typedef std::list<int> Int_List_Type;
- void printAnyListSize(Any_List_Type anyListType)
- {
- printf("Any list size(%d) n", anyListType.size();
- return;
- }
- void showInstListSize(Int_List_Type intListType)
- {
- printAnyListSize(intListType); //compile error...
- }
- printAnyListSize(Any_List_Type(intListType.begin(), intListType.end()));
Add Comment
Please, Sign In to add comment