patchGNU Autoconf Archive - Patches: patch #7735, Macro to detect C++11 '= delete'...

 
 

patch #7735: Macro to detect C++11 '= delete' construct

Submitter:  None
Submitted:  Tue 06 Mar 2012 01:07:37 AM UTC
   
 
Priority:  5 - Normal Status:  Done
Assigned to:  simons Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 04 Apr 2012 09:42:40 AM UTC, comment #1: 

Your macros has been added to the archive in commit 85a2566c9bc82c6f7f012df36921dbbfed7228b3. Thank you very much for the submission!

Peter Simons <simons>
Group administrator
Tue 06 Mar 2012 01:07:37 AM UTC, original submission:  

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #25271:  cxx_delete_method.m4 added by None (2KiB - application/x-m4)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-07 simons StatusReady For Test Done
        Open/ClosedOpen Closed
    2012-04-04 simons StatusNone Ready For Test
        Assigned toNone simons
    2012-03-06 None Attached File- Added cxx_delete_method.m4, #25271

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code