GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    luna, only carbon now (luna@pony.social)'s status on Monday, 10-Mar-2025 21:24:37 JSTluna, only carbon nowluna, only carbon now
    in reply to

    Consider this code. One thread repeatedly prints the number 100 in decimal to std::cout. Another thread repeatedly prints the number 0x100 in hex (which will output as '100') to std::cout.

    You might reasonably expect that the output will simply be '100' over and over and over.

    Unfortunately, the calls to operator<< can get interleaved so you end up with crosstalk of the format specifiers:

    In conversationabout 3 months ago from gnusocial.jppermalink

    Attachments


    1. https://cdn.pony.social/media_attachments/files/114/134/054/354/023/304/original/2c49e257569e36c5.png

    2. https://cdn.pony.social/media_attachments/files/114/134/073/333/013/689/original/c00df8fd94028327.png
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.