Guest User

Untitled

a guest
Apr 7th, 2016
142
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. namespace boost {
  2. template <typename T, typename C>
  3. T lexical_cast(const C&) {
  4. return T();
  5. }
  6.  
  7. }
  8.  
  9. namespace std {
  10. template <typename T>
  11. class basic_string {};
  12. using string = basic_string<char>;
  13. }
  14.  
  15.  
  16. int g();
  17. long long f(int p);
  18. using namespace boost;
  19.  
  20. template <typename T>
  21. void string_as_T() {
  22. boost::lexical_cast<T>(42);
  23. }
  24.  
  25. int main() {
  26. string_as_T<std::string>();
  27. }
RAW Paste Data