daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top