Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2015
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. template <class T1>
  2. struct OuterStruct
  3. {
  4. T1 mValue;
  5. struct InnerStruct
  6. {
  7. T1 mValue;
  8. };
  9. };
  10.  
  11.  
  12. template <class T2>
  13. struct InnerStruct_Wrapper
  14. {
  15. OuterStruct<T2>::InnerStruct mUsingInner;
  16. };
  17.  
  18. int main(int argc, char* argv[])
  19. {
  20. InnerStruct_Wrapper<int> wrapper;
  21. OuterStruct<int>::InnerStruct innerStrct;
  22. innerStrct.mValue = std::numeric_limits<int>::max();
  23. wrapper.mUsingInner = innerStrct;
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement