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
    karna :flipflop: :buffsuki: (karna@poa.st)'s status on Monday, 28-Oct-2024 02:58:52 JSTkarna :flipflop: :buffsuki:karna :flipflop: :buffsuki:
    in reply to
    • hazlin no plap pirate

    @hazlin no problemo. fwiw, yhe term for this sort of initialization of structs is "designated initializer". I did a little digging and saw that c++ is a little more restrictive than c when it comes to how you can use these (see https://en.cppreference.com/w/cpp/language/aggregate_initialization#Designated_initializers ). Also you probably dont need to typedef structs in c++ either

    Note: out-of-order designated initialization, nested designated initialization, mixing of designated initializers and regular initializers, and designated initialization of arrays are all supported in the C programming language, but are not allowed in C++.

    In conversationMonday, 28-Oct-2024 02:58:52 JST from gnusocial.jppermalink

    Attachments

    1. No result found on File_thumbnail lookup.
      Aggregate initialization - cppreference.com
  • 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.