Skip to content

Instantly share code, notes, and snippets.

@graysonarts
Created August 14, 2015 16:04
Show Gist options
  • Save graysonarts/b188835a5830097539b3 to your computer and use it in GitHub Desktop.
Save graysonarts/b188835a5830097539b3 to your computer and use it in GitHub Desktop.
// Fails to compile in vs
using ErrorPair = struct ErrorPairStruct
{
int id;
std::string message;
}
using ExceptionErrorMap = std::map <ExceptionType, ErrorPair>;
const ExceptionErrorMap errorsMap {
{ NotFoundException, { IDS_NOT_FOUND, Lookup(IDS_NOT_FOUND) } },
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment