Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Anton Savin
The Friedrichs Extension of Elliptic Operators with Conditions on Submanifolds of Arbitrary Dimension
This is an early access version, the complete PDF, HTML, and XML versions will be available soon. Open AccessArticle by Anton Savin Nikolskii Mathematical Institute, RUDN University, Miklukho-Maklaya Str.
C++ switch statement expression evaluation guarantee
I think it is guaranteed that is only called once. First we have [6.4.2 (1)] (the non-integral stuff does not apply here), and The value of a condition that is an expression is the value of the expression The value of the condition will be referred to as simply “the condition” where the usage is unambiguous. [6.4 (4)] That means in our case, the "condition" is just a plain value of type , not . is only used to find the value for the condition.
Why does decltype not see the member declaration?
Trying to compile this simple class: #include <vector> struct M { // interface auto begin() -> decltype(identities.begin()) { return identities.begin(); } // implementation private: std::vector<int> identities; }; results in an error: $ g++-510 where.cpp -std=c++11 where.cpp:57:35: error: ‘struct M’ has no member named ‘identities’ auto begin() ->decltype(this->identities.begin()) ^ where.cpp:57:35: error: ‘struct M’ has no member named ‘identities’ $ clang++ where.cpp -std=c++11 -Wall...
Can a generic lambda have no arguments?
First of all, I know I could use templated class/functor, but that is not what I want. Here is the lambda: auto lambda = [] (auto var) { decltype(var) x; //do stuff with x but nothing with var }; The problem is I receive the warning C4100(unreferenced formal parameter). I also know I could use tricks such as disabling the warning and enabling it again after the lambda or using macros such as UNREFERENCED_PARAMETER, but that is cheating. Is there any way I could accomplish that?
How should I deal with mutexes in movable types in C++?
I've put some rather suggestive type aliases in there that we won't really take advantage of in C++11, but become much more useful in C++14. Be patient, we'll get there. Your question boils down to: We'll start with the move constructor. Note that the member has been made . Strictly speaking this isn't necessary for the move members, but I'm assuming you also want copy members. If that is not the case, there is no need to make the mutex . When constructing , you do not need to lock .
Type trait to check that all types in a parameter pack are copy constructible
I need a type trait to check whether all types in a parameter pack are copy constructible. This is what I've done so far. The main function contains some test cases, to check the functionality. My idea was to check recursively, whether the head element of the pack is copy-constructible or not and go on further, with the tail. Unfortunately, I do not get this idea to compile. My knowledge about variadic templates is not very advanced.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Anton
Contact Anton, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack