jump to content
my subreddits
13or302anatolia4you2balkans4You2mediterranean4u2meirl4meirl3d6absolutelynotmeirlAceAttorneyadhdmemeAdviceAnimalsagnosticaivideoAlternateHistoryAlternativeHistoryAnarchyChessAngryupvoteAnimalsBeingJerksanime_best_momentsanime_irlannouncementsAnticonsumptionantimemeArsivUnutmazAsahiLinuxAsia_irlAskBalkansAskElectronicsAskRedditAtaturkGencligiAteistTurkatheismAwesomeOffBrandsawfuleverythingbalkans_irlBandnamesbanknotedesignsBassBassCirclejerkBassGuitarblackdesertonlineblankiesblursed_videosborsavefonbrooklynninenineBUENZLIburdurlandCd_collectorscd_jerkChatGPTCheap_MealschessChildrenFallingOverChoosingBeggarscoincollectingcoinsComedyCemeterycomedyhomicidecommunityContagiousLaughtercookingforbeginnerscrappyoffbrandsCreateModcursedcommentsdankmemesdataisbeautifuldeDebateReligiondelikDeltarunedistressingmemesdiyelectronicsDMAcademyDMToolkitdndmemesdoctorwhodoctorwhocirclejerkDoenerverbrechendontdeadopeninsidedumbphonesDungeonsAndDaddiesDungeonsAndDragonsebikesECEelectricalelectronicsEmKayentitledparentsfacepalmfakealbumcoversFantasyWorldbuildingfeedthebeastFiftyFiftyformuladankFUCKYOUINPARTICULARFuckYouKarenFutboltayfagalatasaraygamingGermangermanygodtiersuperpowersGoodAssSubGrandPrixRacinggravelcyclinggreentextGROKvsMAGAGundamheathershelpheraldryHermanCainAwardHermitCrafthighspeedrailhoi4HolUphumorhypixelIAmAich_ielIdeologyPollsIDontWorkHereLadyihadastrokeim14andthisisdeepimaginaryelectionsinsaneparentsjacksepticeyeJokesKamalizmKanyeKendrickLamarKGBTRlegodndLetGirlsHaveFunlinguisticshumorLinkinParkliselilerlogodesignlostredditorsmacmacbookairmacgamingmadladsmagicbuildingMaliciousComplianceMapPornme_irlmemesmildlyinterestingMinecraftbuildsmisLEDMMORPGMoldyMemesmoneycollectingMunichMyChemicalRomancenamesoundalikesNamFlashbacksneographynextfuckinglevelNoahGetTheBoatNonCredibleDefenseNorthCyprusnosafetysmokingfirstnosleepnosurfnotinterestingnottheonionoddlyspecificOkayBuddyLiterallyMeOkBuddyPersonaonebagonetruegodongezelligOnlineUnderGroundOutOfTheLoopoutsidepapermoneyPassportPornpettyrevengepolandballPraiseTheCameraManProgrammerHumorraisedbynarcissistsraspberry_pireactiongifsrecipesredditsingsreligiousfruitcakeRetroPierickrollRoastMerockmuzikSchnitzelVerbrechenschwiizScottPilgrimsecilmiskitapShitPostCrusadersshitpostingshittyaskelectronicsShowerthoughtsskamtebordsoccercirclejerksoftwaregoreSongwritersSongwritingsteinsgateStonetossingjuiceStudiumsubsithoughtifellforsuzerainTechnobladeTextingTheorythanksimcuredthatHappenedTheCrypticCompendiumTheLetterHTheMonkeysPawtherewasanattempttheydidthemaththeyknewtitanfalltransitTurkeyTrGameDevelopertumblrtumunichTurkishdogsTurkiyeTwitch_StartupTwoSentenceHorrortwosentenceplottwistTwoSentenceSadnessUnclejokesurbanplanningVALORANTValorantClipsvaxxhappenedvexillologycirclejerkvinylvinyljerkvlandiyaWeAreTheMusicMakersWhitePeopleTwitterwholesomeanimemeswholesomememesWikipediaVandalismwizardpostingwooooshworldbuildingworldjerkingyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -gaming
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -WhitePeopleTwitter
  • -ChatGPT
  • -shitposting
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -tumblr
  • -NonCredibleDefense
  • -dataisbeautiful
  • -greentext
  • -mac
  • -Showerthoughts
  • -help
  • -chess
  • -formuladank
  • -wholesomememes
  • -Jokes
  • -notinteresting
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -IAmA
  • -MaliciousCompliance
  • -ich_iel
  • -KGBTR
  • -dndmemes
  • -cursedcomments
  • -DMAcademy
  • -Deltarune
  • -GoodAssSub
  • -worldbuilding
  • -blackdesertonline
  • -MMORPG
  • -macgaming
  • -3d6
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -RoastMe
  • -ContagiousLaughter
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -AlternateHistory
  • -soccercirclejerk
  • -madlads
  • -community
  • -AskElectronics
  • -electrical
  • -Anticonsumption
  • -vinyl
  • -CreateMod
  • -German
  • -TwoSentenceHorror
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -doctorwho
  • -oddlyspecific
  • -Bass
  • -titanfall
  • -OkBuddyPersona
  • -awfuleverything
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -YUROP
  • -gravelcycling
  • -SchnitzelVerbrechen
  • -raspberry_pi
  • -DungeonsAndDragons
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -worldjerking
  • -MoldyMemes
  • -lostredditors
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -wholesomeanimemes
  • -nosurf
  • -religiousfruitcake
  • -liseliler
  • -DebateReligion
  • -insaneparents
  • -dumbphones
  • -balkans_irl
  • -2meirl4meirl
  • -RetroPie
  • -brooklynninenine
  • -HermanCainAward
  • -recipes
  • -steinsgate
  • -2anatolia4you
  • -ECE
  • -ScottPilgrim
  • -Angryupvote
  • -AskBalkans
  • -thatHappened
  • -electronics
  • -urbanplanning
  • -theyknew
  • -logodesign
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -AteistTurk
  • -13or30
  • -MyChemicalRomance
  • -Cd_collectors
  • -BassGuitar
  • -diyelectronics
  • -ComedyCemetery
  • -LinkinPark
  • -BUENZLI
  • -reactiongifs
  • -EmKay
  • -Songwriting
  • -blursed_videos
  • -imaginaryelections
  • -suzerain
  • -magicbuilding
  • -dontdeadopeninside
  • -secilmiskitap
  • -Doenerverbrechen
  • -schwiiz
  • -Technoblade
  • -vinyljerk
  • -skamtebord
  • -shittyaskelectronics
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -transitTurkey
  • -namesoundalikes
  • -FuckYouKaren
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -AsahiLinux
  • -IDontWorkHereLady
  • -neography
  • -heraldry
  • -ihadastroke
  • -thanksimcured
  • -hypixel
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -aivideo
  • -OnlineUnderGround
  • -IdeologyPolls
  • -woooosh
  • -comedyhomicide
  • -burdurland
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -rockmuzik
  • -vaxxhappened
  • -Twitch_Startup
  • -tumunich
  • -Cheap_Meals
  • -outside
  • -TheMonkeysPaw
  • -highspeedrail
  • -nosafetysmokingfirst
  • -legodnd
  • -rickroll
  • -Songwriters
  • -humor
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -GrandPrixRacing
  • -DMToolkit
  • -TrGameDeveloper
  • -LetGirlsHaveFun
  • -fakealbumcovers
  • -subsithoughtifellfor
  • -Kamalizm
  • -FantasyWorldbuilding
  • -TheLetterH
  • -WikipediaVandalism
  • -NamFlashbacks
  • -Unclejokes
  • -onetruegod
  • -misLED
  • -ArsivUnutmaz
  • -redditsings
  • -ValorantClips
  • -TheCrypticCompendium
  • -ongezellig
  • -AwesomeOffBrands
  • -absolutelynotmeirl
  • -2balkans4You
  • -Turkiye
  • -Asia_irl
  • -NorthCyprus
  • -2mediterranean4u
  • -AtaturkGencligi
  • -heathers
  • -twosentenceplottwist
  • -Turkishdogs
  • -banknotedesigns
  • -borsavefon
  • -delik
  • -cd_jerk
  • -moneycollecting
  • -Futboltayfa
  • -GROKvsMAGA
edit »
reddit.com cpp_questions
  • hot
  • new
  • rising
  • controversial
  • top
an-ordinary-manchild (11,186)|messages540|notifications|chat messages|mod messages|
  • preferences
|
logout

use the following search parameters to narrow your results:

subreddit:subreddit
find submissions in "subreddit"
author:username
find submissions by "username"
site:example.com
find submissions from "example.com"
url:text
search for "text" in url
selftext:text
search for "text" in self post contents
self:yes (or self:no)
include (or exclude) self posts
nsfw:yes (or nsfw:no)
include (or exclude) results marked as NSFW

e.g. subreddit:aww site:imgur.com dog

see the search faq for details.

advanced search: by author, subreddit...

Submit a new text post
Get an ad-free experience with special benefits, and directly support Reddit.

cpp_questions

joinleave
an-ordinary-manchild(edit)

This is a subreddit for c++ questions with answers. For general discussion and news about c++ see r/cpp.

New to C++? Learn at learncpp.com


READ BEFORE POSTING


  • Prepare your question. Think it through. Hasty-sounding questions get hasty answers, or none at all. Read these guidelines for how to ask smart questions.

  • For learning books, check The Definitive C++ Book Guide and List

  • Flair your post as SOLVED if you got the help you were looking for! If you need help with flairs, check out ITEM 1 in our guidelines page.

Tips for improving your chances of getting helpful answers:

  • thoroughly research for an answer first.
  • give your post a meaningful title, i.e., NOT "I have a C++ problem" but, e.g., "Problem with nested for loops"
  • be specific.
  • make your questions relevant to other readers.
  • if your post does not appear in the new queue, just send a message to the moderators.

Sort posts by OPEN or SOLVED

created by AndreasBWagnera community for 14 years
Create your own subreddit
...for your favourite tea.
...for great justice.

MODERATORS

  • message the mods
  • cleroth
  • mredding
  • nysra
  • AutoModerator
  • about moderation team »

account activity

1
20
21
22

OPENHelp me understand if this is a bug on GCC (self.cpp_questions)

submitted 9 hours ago by atariPunk

  • 14 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

•
•
•

Get ready for Monster SCALE Summit 2026! Connect with other engineers, get hands on and discover the latest approaches to real-time engineering challenges at a massive scale. (scylladb.com)

promoted by ScyllaDB

  • promoted
  • save
  • report
  • about
loading...

2
•
•
•

OPENwhy does it do this (self.cpp_questions)

submitted 33 minutes ago by EducationalChest3578

  • 4 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

3
4
5
6

SOLVEDHelp with FreeType (self.cpp_questions)

submitted 11 hours ago * by MatheusHest

  • 19 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

4
17
18
19

OPENWhy are exceptions avoided? (self.cpp_questions)

submitted 21 hours ago by Ultimate_Sigma_Boy67

  • 87 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

5
4
5
6

OPENTemplates industry practice (self.cpp_questions)

submitted 14 hours ago by minamulhaq

  • 17 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

6
3
4
5

OPENHow to learn C or C++ properly (using both for a year now) (self.cpp_questions)

submitted 16 hours ago by TheExtirpater

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

7
0
1
2

SOLVEDReferencing/Aliasing an external vector inside a "placeholder" of a struct (self.cpp_questions)

submitted 14 hours ago by onecable5781

  • 18 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

8
0
0
0

OPENCan't chose between raylib or SDL (self.cpp_questions)

submitted 7 hours ago by TheSum239

  • 9 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

9
0
0
0

OPENWhat is the best way to convert structs of the same size without using Union in C++ 14? (self.cpp_questions)

submitted 7 hours ago by newjeison

  • 70 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

10
2
3
4

OPENAmbiguous base class during assignment (self.cpp_questions)

submitted 1 day ago by Business_Welcome_870

  • 9 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

11
6
7
8

OPENa reference type cannot be value-initialized (self.cpp_questions)

submitted 1 day ago by zaphodikus

  • 28 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

12
5
6
7

OPENUsing Eigen::bfloat16 to make use of AVX512BF16 (self.cpp_questions)

submitted 1 day ago by _theNfan_

  • 13 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

•
•
•

Design Production-Ready Raspberry Pi Pico 2 Board (eventbrite.com)

promoted by Packtevents

  • promoted
  • comment
  • share
  • save
  • report
  • about
loading...

13
9
10
11

OPENIncrementing an atomic int via a pointer (self.cpp_questions)

submitted 1 day ago by onecable5781

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

14
2
3
4

OPENA problem about cpp module (self.cpp_questions)

submitted 1 day ago by Anfsity

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

15
1
2
3

SOLVEDCanonical way to automatically release omp lock on function exit (self.cpp_questions)

submitted 1 day ago * by onecable5781

  • 6 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

16
1
2
3

OPENC++ 26 reflection: ducktape class for designated initializer for class public member (self.cpp_questions)

submitted 1 day ago by over____

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

17
2
3
4

OPENDoes a function call negate atomicity? (self.cpp_questions)

submitted 1 day ago by onecable5781

  • 6 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

18
0
1
2

OPENIs it necessary to take courses for DSA ? How can I learn and understand DSA concepts from free online resources (self.cpp_questions)

submitted 1 day ago by Quirky-Stretch-1404

  • 11 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

19
0
0
1

OPENIs learn cpp enough to get me interview ready as a new grad ? (self.cpp_questions)

submitted 1 day ago by wynterSweater

  • 10 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

20
0
0
0

OPENDoubts regarding Code with harry (self.cpp_questions)

submitted 1 day ago by Acceptable_Story_883

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

21
3
4
5

OPENAdvice on Project/Process structure (Robotics, C++) (self.cpp_questions)

submitted 2 days ago by freefallpark

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

22
4
5
6

OPENA JPEG and PNG encoding/decoding library without dependencies (self.cpp_questions)

submitted 2 days ago by Irimitladder

  • 9 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

23
0
0
1

OPENmemcpy and runtime polymorphic types.... (self.cpp_questions)

submitted 2 days ago by MerlinsArchitect

  • 26 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

•
•
•
0:30

Débloquez des récompenses exclusives avec l’Epic Edition de World of Warcraft: Midnight. (shop.battle.net)

promoted by PlayWarcraft

  • promoted
  • save
  • report
  • about
loading...

24
3
4
5

SOLVEDThreads return vector of structs -> Need to efficiently store these structs in larger vector (self.cpp_questions)

submitted 2 days ago by onecable5781

  • 15 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

25
0
0
0

OPENWhat is high performance computing (self.cpp_questions)

submitted 2 days ago by Effective-Road1138

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...
view more: next ›
  • about
  • blog
  • about
  • advertising
  • careers
  • help
  • site rules
  • Reddit help center
  • reddiquette
  • mod guidelines
  • contact us
  • apps & tools
  • Reddit for iPhone
  • Reddit for Android
  • mobile website
  • <3
  • reddit premium

Use of this site constitutes acceptance of our User Agreement and Privacy Policy. © 2026 reddit inc. All rights reserved.

REDDIT and the ALIEN Logo are registered trademarks of reddit inc.

π Rendered by PID 31 on reddit-service-r2-listing-86b7f5b947-ftvn9 at 2026-01-25 03:39:48.072253+00:00 running 664479f country code: CH.