Guest User

Untitled

a guest
Jan 18th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. typedef std::list<boost::any> Any_List_Type;
  2. typedef std::list<int> Int_List_Type;
  3.  
  4. void printAnyListSize(Any_List_Type anyListType)
  5. {
  6. printf("Any list size(%d) n", anyListType.size();
  7. return;
  8. }
  9.  
  10. void showInstListSize(Int_List_Type intListType)
  11. {
  12. printAnyListSize(intListType); //compile error...
  13. }
  14.  
  15. printAnyListSize(Any_List_Type(intListType.begin(), intListType.end()));
Add Comment
Please, Sign In to add comment