jump to:allmastodonblueskylemmylobstersdevstackwikirsshn
wwebbit
view: | | |

Knowledge / Stack Overflow · hot matching “c++”

4 shown · updated 33s ago · read only
  1. How to use std::print() with wchar_t? [duplicate] (stackoverflow.com)stack

    25 points by Bobby in stackoverflow.com · 1h ago · stack

    A book (Beginning C++23: From Beginner to Pro) that I was reading about C++ asserts the following: But apparently, std::print() doesn't format wchar_t characters or strings. Does it? #include <print> int main(void) { wchar_t c = L'\U0001F5F2'; std::println("{}", c); return 0; }…
    filed under c++wchar-t
  2. Can a conforming C++ implementation suspend a thread indefinitely after creation? (stackoverflow.com)stack

    20 points by Bob in stackoverflow.com · 15h ago · stack

    The C++ standard's forward progress guarantees in [intro.progress] use "should" language: The implementation should ensure that the last value (in modification order) assigned by an atomic or synchronization operation will become visible to all other evaluations in a finite peri…
  3. Why is rep movsb slow for overlapping forward memmove, and why does libc use it? (stackoverflow.com)stack

    13 points by Alex Guteniev in stackoverflow.com · 15mo ago · stack

    TL;DR: memmove that uses rep movsb is magnitudes slow on overlapping array of 8193 bytes compared to memmove for 8191 elements that doesn't use rep movsb . I'm asking why. Consider the following benchmark: #include <benchmark/benchmark.h> #include <cstring> using namespace std;…
  4. GCC vs MS C++ Compiler [closed] (stackoverflow.com)stack

    1 points by Juice in stackoverflow.com · 16y ago · stack

    I often read that the GCC compiler is much better than the Microsoft compiler on various forums and comment thread. This is always because "Micro$oft is evil" and that GCC is open-source. Are there any technical reasons that GCC is better? Are there any scenarios where one would…
    filed under c++gcc