Skip to main content

Feb
25
comment Logo updates to Stack Overflow's visual identity
@Richard I disagree. Logo may not have a critical impact, it won't be "I won't use this product because of the logo" for anyone, but it will be "hey, I heard about that!" for many.
Feb
25
revised Python func called from C++ not defined
Fixed formatting
Feb
25
revised Python func called from C++ not defined
deleted 90 characters in body
Feb
25
comment std::array at function not throwing out of range
@alfC They are not UB tho? It's defined that if if exception leaves main(), std::terminate is called. It's implementation- (and OS-) defined how that is handled, but it's not UB.
Feb
19
comment Prevent automatic storage of pseudo references
What do you mean by pseudo-reference? std::reference_wrapper or something similar?
Feb
17
comment jthread constructor in MSVC does not seem to inject the stop_token correctly
Possible duplicate: Passing object by reference to std::thread in C++11 (not sure if it's the only problem, but likely relevant)
Feb
15
awarded Critic
Feb
8
comment Group text chat without computers
@Anixx If you allow broadcasting from every receiver, you have a group chat. Historically it wasn't done, because there's no much reason to do that - the more people are in, the more you have to restrict what you share. But then, if this a result of a peace treaty, you can explain it pretty easily - two ministers conspired before and now everyone wants full transparency in communication between both realms.
Feb
7
comment Why does std::vector::push_back destructs pushed object? And how to push an object without creating a temporary variable?
You violated the Rule of Three. For this case it doesn't matter, automatically generated copy constructor does the right thing. I presume your real code has a pointer allocated with new and for that implicit copy constructor will not do.
Feb
4
answered Bringing in my own communion bread to mass?
Feb
4
revised How to create a map-like interface for std::vector, or how to treat a vector as an index-value map?
added 596 characters in body
Feb
4
answered How to create a map-like interface for std::vector, or how to treat a vector as an index-value map?
Feb
3
comment How to access elements of a derived container class
Please make sure you present a [mcve] - the code you present doesn't compile because arr_ptr is not in fact a pointer and cannot be initialised with nullptr and the second member has no name.
Feb
2
comment Why would it be a problem if Voldemort learned the contents of the prophecy?
This question is similar to: Why did the Order bother to guard the Prophecy?. If you believe it’s different, please [edit] the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem.
Feb
2
awarded Citizen Patrol
Jan
22
answered When we unite ourselves to Christ, are we elevated to heaven?
Jan
22
comment When did the administrative part of Christianity (as a religion) appear? Why was it actually needed?
@virolino Do note that this sentiment is only shared by Protestants. The majority of Christians would disagree that there was any corruption in the Church in 4th century or later.
Jan
21
comment What is the use of forwarding references in deduction guides?
I think it's the other way round - without deduction guide Range of ContainerView would be deduced as reference and that would fail requires expression. But I don't understand it well enough to post an answer
Jan
18
comment Are compilers allowed to merge nested virtual calls inside a "final" class?
@AndreyTurkin As I understand, OP wants compiler to generate entirely new function UserStatic::Call that inlines the calls inside, since they can always be resolved statically for this particular class.
Jan
18
comment Who among the Apostles celebrated the First Holy Mass, did it happen at the Upper Room?
So you ask if the Apostles celebrated the Holy Mass between Resurrection and Pentecost? An interesting question, but I don't think it has an answer.
1 2 3 4 5