autoconf-archive-maintainers | |
[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #7735] Macro to detect C++11 '= delete' construct
From: |
anonymous |
Subject: |
[patch #7735] Macro to detect C++11 '= delete' construct |
Date: |
Tue, 06 Mar 2012 01:07:38 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 Iceweasel/10.0.2 |
URL:
<http://savannah.gnu.org/patch/?7735>
Summary: Macro to detect C++11 '= delete' construct
Project: GNU Autoconf Archive
Submitted by: None
Submitted on: Tue 06 Mar 2012 01:07:37 AM UTC
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
This macro detects support for the C++11 '= delete' construct. Here is the
DESCRIPTION:
# Check whether the C++11 '= delete' syntax, for suppressing undesired
# implicit methods, is supported. If it is, the macro DELETE_METHOD is
# defined to '= delete'; otherwise it is defined to nothing. Thus, you
# can write
#
# class foo {
# ...
# private:
# foo(foo const&) DELETE_METHOD;
# };
#
# to delete the 'foo' copy constructor or fall back to the idiom of
# a private undefined method if the compiler doesn't support this.
#
# Does not test '= delete' on a template specialization.
# Does not ensure that the compiler is in C++11 mode.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 06 Mar 2012 01:07:37 AM UTC Name: cxx_delete_method.m4 Size: 2kB
By: None
<http://savannah.gnu.org/patch/download.php?file_id=25271>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?7735>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch #7735] Macro to detect C++11 '= delete' construct,
anonymous <=