Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Message-ID | <j0p5n3$q0v$1@dont-email.me> (permalink) |
|---|---|
| Newsgroups | comp.std.c++ |
| From | Daniel Krügler <daniel.kruegler@googlemail.com> |
| Subject | Re: limited reflection proposal for C++ |
| Organization | A noiseless patient Spider |
| References | <0453f0ca-78a8-4315-ae4d-5b3a922054b3@fq4g2000vbb.googlegroups.com> |
| Date | 2011-07-28 16:24 -0600 |
Am 22.07.2011 18:07, schrieb Andrzej Krzemieński: > > Hi everyone, > I intend to propose a small reflection-like utility for the next C++ > standard (which would be something like C++16?). My proposal is still > in progress, but I would like to collect input from you as early as it > is possible. I would appreciate your feedback. > Here is the current description. > https://docs.google.com/document/pub?id=18Jr3UfvQvbWh2pXQ4Wm4e8-PYdV2aTXpPtNNOicgGjw I like your proposal. But there is one subtlety which might make std::tuple inappropriate for the API: std::tuple enforces a copy constructor of the form tuple(const tuple&) = default; This means that this could cause problems, if at least one member or base class type M has a mutating copy constructor of the form M::M(M&); I'm mentioning this, because this reflection-utility should IMO be useful for all valid C++ types. Of-course one could consider this as a library problem and in fact recently a new issue has been opened for std::pair in this regard, because the C++03 std::pair was able to host types with a source-mutating copy constructor/assignment operator. Nonetheless, this is a library issue currently and this should better not have impact on something like this very core-language near utility. I would hope that the tuple/pair copy problem can be solved soon, but I would like to emphasize that we have this problem at the moment. HTH & Greetings from Bremen, Daniel Krügler -- [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Next in thread | Find similar
limited reflection proposal for C++ Andrzej Krzemieński<akrzemi1@gmail.com> - 2011-07-22 10:07 -0600
Re: limited reflection proposal for C++ BGB <cr88192@hotmail.com> - 2011-07-28 16:28 -0600
Re: limited reflection proposal for C++ Andrzej Krzemieński <akrzemi1@gmail.com> - 2011-07-30 13:13 -0600
Re: limited reflection proposal for C++ BGB <cr88192@hotmail.com> - 2011-07-31 17:09 -0600
Re: limited reflection proposal for C++ Daniel Krügler <daniel.kruegler@googlemail.com> - 2011-07-28 16:24 -0600
Re: limited reflection proposal for C++ Jeff Flinn <TriumphSprint2000@hotmail.com> - 2011-07-30 13:16 -0600
Re: limited reflection proposal for C++ Andrzej Krzemieński<akrzemi1@gmail.com> - 2011-08-02 18:15 -0600
csiph-web