Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4178)

Issue 32290043: Distinguish between C++11 language and library support for <initializer_list>

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by Mark Mentovai
Modified:
10 years, 5 months ago
Reviewers:
jgm
CC:
googlemock_googlegroups.com, wan
Base URL:
http://googlemock.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Distinguish between C++11 language and library support for <initializer_list>. It is possible to build for some targets (notably Mac OS X 10.6 and earlier) with C++11 language support but without C++11 library support. In these environments, <initializer_list> is not available, so guard its inclusion and uses of std::initializer_list with a purpose-specific macro, GMOCK_ENV_HAS_STD_INITIALIZER_LIST_, instead of the generic GTEST_LANG_CXX11 macro. This change is in the same vein as gtest r629.

Patch Set 1 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M include/gmock/gmock-matchers.h View 3 chunks +4 lines, -4 lines 0 comments Download
M include/gmock/internal/gmock-port.h View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 1
Mark Mentovai
10 years, 5 months ago (2013-11-25 20:24:38 UTC) #1

          
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b