Advertisement
fastman92

Visual C++ 2012 compiler bug, lambda function with def arg

Apr 28th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. // IMG Organizer Creator.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5.  
  6. using namespace std;
  7.  
  8. // Converts string to C++ styled characters
  9. // can create string with \r \n and so
  10. template<class T> void templatedFunction(T argument)
  11. {
  12. }
  13.  
  14. int wmain(int argc, wchar_t* argv[], wchar_t* envp[])
  15. {
  16.     auto writeString = [&](const char* str, char usedStringDelimiter = 7)
  17.     {
  18.         templatedFunction(7);
  19.     };
  20.  
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement