diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-08-28 16:51:47 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-08-28 16:51:47 +0200 |
commit | e3c786e54c4aab48cf39949f69bc18fc3dee1055 (patch) | |
tree | dfa91909779a7bd98e0b18c9abc037ca318bc1b1 /TAO/TAO_IDL | |
parent | 423b68a304722110ddb4f1a9cc7c019d94541166 (diff) | |
download | ATCD-e3c786e54c4aab48cf39949f69bc18fc3dee1055.tar.gz |
Generate also a private move constructor/assignment and use ACE_UNIMPLEMENTED_FUNC in order to get `= delete` with C++11 and newer
* TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp:
Diffstat (limited to 'TAO/TAO_IDL')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp index 761b7806411..71486b6ab5c 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp @@ -254,13 +254,20 @@ be_visitor_interface_ch::visit_interface (be_interface *node) if (! node->is_abstract ()) { *os << "// Private and unimplemented for concrete interfaces." << be_nl - << node->local_name () << " (const " - << node->local_name () << " &);" << be_nl_2; + << "ACE_UNIMPLEMENTED_FUNC (" << node->local_name () << " (const " + << node->local_name () << " &));" + << "\n#if defined (ACE_HAS_CPP11)" << be_nl + << "ACE_UNIMPLEMENTED_FUNC (" << node->local_name () << " (" + << node->local_name () << " &&));" + << "\n#endif /* ACE_HAS_CPP11 */" << be_nl; } - *os << "void operator= (const " << node->local_name () << " &);"; - - *os << be_uidt_nl + *os << "ACE_UNIMPLEMENTED_FUNC (" << node->local_name () + << " &operator= (const " << node->local_name () << " &));" + << "\n#if defined (ACE_HAS_CPP11)" << be_nl + << "ACE_UNIMPLEMENTED_FUNC (" << node->local_name () + << " &operator= (" << node->local_name () << " &&));" + << "\n#endif /* ACE_HAS_CPP11 */" << be_uidt_nl << "};"; be_visitor_context ctx (*this->ctx_); |