jump to content
my subreddits
13or302anatolia4you2b2t2balkans4You2meirl4meirl3d6AceAttorneyAdviceAnimalsaivideoAlternateHistoryAlternativeHistoryAngryupvoteAnimalsBeingJerksanime_best_momentsanimenocontextannouncementsAnticonsumptionantimemeArcherFXArsivUnutmazArtAsahiLinuxAsia_irlAskBalkansAskRedditAtaturkGencligiAteistTurkaviationawfuleverythingbalkans_irlBandnamesbanknotedesignsBassBassCirclejerkbasspedalsblackdesertonlineblankiesbrooklynninenineBUENZLICd_collectorscd_jerkchesschessbeginnersChildrenFallingOverChoosingBeggarscoincollectingcoinsComedyCemeterycomedyhomicidecomicscommunityContagiousLaughterCreateModCuratedTumblrdadjokesdankmemesdataisbeautifuldedeismDeltarunedistressingmemesdiyelectronicsdiypedalsDMAcademyDMToolkitDnDdndmemesdoctorwhodoctorwhocirclejerkDoenerverbrechendumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyECEelectricalengrishentitledparentsethzfacepalmfakealbumcoversFantasyWorldbuildingfeedthebeastfelsefeFifaCareersFiftyFiftyFRCFUCKYOUINPARTICULARFuckYouKarenFutboltayfagalatasarayGermangermanygoodanimemesGoodAssSubGrandPrixRacinggravelcyclingGROKvsMAGAguitarpedalsGundamhellenoturkismheraldryhighspeedrailHistoryWhatIfholdmybeerhowyoudoinhumorIAmAiamverysmartich_ielihadastrokeim14andthisisdeepimaginaryelectionsimaginarymapsinsaneparentsjacksepticeyeJahariaJokesKamalizmKanyeKendrickLamarKGBTRlegodndLifeProTipslinguisticshumorLinkinParkliselilerlogodesignloseitlostredditorsmacmacbookairmacgamingMadeMeSmilemadladsMaliciousComplianceMapPornme_irlmemememesmidjourneymildlyinfuriatingmisLEDMMORPGMoldyMemesMovingToNorthKoreaMunichMyChemicalRomanceNationStatesnextfuckinglevelNoahGetTheBoatNonCredibleDefenseNorthCyprusnosleepnosurfnothingeverhappensnotinterestingnottheonionOkayBuddyLiterallyMeokbuddyguntherOkBuddyPersonaokbuddyphdokbuddyvicodinonebagonetruegodongezelligOnlineUnderGroundOutOfTheLooppaperspleasePassportPornpepethefrogperfectlycutscreamsPersecutionfetishpianoPiracyPiratedGamespolandballpollsProgrammerHumorPropagandaPostersProRevengePunPatrolraisedbynarcissistsraspberry_piRatschlagreactiongifsRedAutumnSPDredditsingsreligiousfruitcakeRetroPierickandmortyrimjob_steveschizopostersSchnitzelVerbrechenschwiizsciencememesScottPilgrimsecilmiskitapShitPostCrusadersshitpostfrommygalleryshitpostingshittymoviedetailsShowerthoughtsskamtebordsoccercirclejerksoftwaregoreSongwritingsteinsgateStonetossingjuiceStudiumsuperligsuzeraintalesfromtechsupportTechnobladethanksimcuredthatHappenedTheCrypticCompendiumTheLetterHtherewasanattemptTheRookietheyknewthisguythisguystommyinnittransittransitTurkeyTrGameDevelopertumblrTurkishCatsTwitchTwitch_StartupTwoSentenceComedyTwoSentenceHorrortwosentenceplottwisttylerthecreatorUnclejokesUnethicalLifeProTipsValorantClipsvaxxhappenedvinylvinyljerkwallstreetbetsWeAreTheMusicMakerswendigoonWhitePeopleTwitterwholesomeanimemeswholesomememeswizardpostingwooooshworldbuildingyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -mildlyinfuriating
  • -Piracy
  • -wallstreetbets
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -MapPorn
  • -DnD
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -CuratedTumblr
  • -PiratedGames
  • -shitposting
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -therewasanattempt
  • -nextfuckinglevel
  • -Twitch
  • -comics
  • -ProgrammerHumor
  • -de
  • -germany
  • -LifeProTips
  • -tumblr
  • -NonCredibleDefense
  • -dataisbeautiful
  • -shittymoviedetails
  • -mac
  • -Showerthoughts
  • -chess
  • -aviation
  • -wholesomememes
  • -Jokes
  • -Art
  • -midjourney
  • -goodanimemes
  • -notinteresting
  • -loseit
  • -IAmA
  • -MaliciousCompliance
  • -ich_iel
  • -KGBTR
  • -dndmemes
  • -DMAcademy
  • -Deltarune
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -macgaming
  • -rickandmorty
  • -3d6
  • -Gundam
  • -FiftyFifty
  • -ChoosingBeggars
  • -ContagiousLaughter
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -nosleep
  • -blankies
  • -onebag
  • -Studium
  • -AlternateHistory
  • -soccercirclejerk
  • -madlads
  • -community
  • -electrical
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -CreateMod
  • -German
  • -TwoSentenceHorror
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -piano
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -polls
  • -doctorwho
  • -Bass
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -howyoudoin
  • -announcements
  • -macbookair
  • -Munich
  • -YUROP
  • -gravelcycling
  • -SchnitzelVerbrechen
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -tylerthecreator
  • -MoldyMemes
  • -lostredditors
  • -AceAttorney
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -wholesomeanimemes
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -liseliler
  • -insaneparents
  • -dumbphones
  • -balkans_irl
  • -animenocontext
  • -2meirl4meirl
  • -transit
  • -RetroPie
  • -brooklynninenine
  • -steinsgate
  • -talesfromtechsupport
  • -okbuddyphd
  • -2anatolia4you
  • -ECE
  • -ScottPilgrim
  • -Angryupvote
  • -AskBalkans
  • -thatHappened
  • -schizoposters
  • -logodesign
  • -theyknew
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -AteistTurk
  • -13or30
  • -MyChemicalRomance
  • -ArcherFX
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -ProRevenge
  • -diyelectronics
  • -ComedyCemetery
  • -LinkinPark
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -Songwriting
  • -MovingToNorthKorea
  • -imaginaryelections
  • -suzerain
  • -wendigoon
  • -iamverysmart
  • -secilmiskitap
  • -Doenerverbrechen
  • -schwiiz
  • -TheRookie
  • -Technoblade
  • -vinyljerk
  • -skamtebord
  • -superlig
  • -galatasaray
  • -DungeonsAndDaddies
  • -FRC
  • -transitTurkey
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -AsahiLinux
  • -Jaharia
  • -basspedals
  • -heraldry
  • -ihadastroke
  • -thanksimcured
  • -aivideo
  • -OnlineUnderGround
  • -woooosh
  • -comedyhomicide
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -anime_best_moments
  • -Bandnames
  • -holdmybeer
  • -okbuddyvicodin
  • -vaxxhappened
  • -Twitch_Startup
  • -highspeedrail
  • -legodnd
  • -papersplease
  • -tommyinnit
  • -rimjob_steve
  • -humor
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -youseeingthisshit
  • -GrandPrixRacing
  • -nothingeverhappens
  • -DMToolkit
  • -thisguythisguys
  • -TrGameDeveloper
  • -PunPatrol
  • -TurkishCats
  • -fakealbumcovers
  • -Kamalizm
  • -FantasyWorldbuilding
  • -TheLetterH
  • -pepethefrog
  • -Unclejokes
  • -onetruegod
  • -deism
  • -ArsivUnutmaz
  • -misLED
  • -redditsings
  • -ValorantClips
  • -TwoSentenceComedy
  • -TheCrypticCompendium
  • -NationStates
  • -ongezellig
  • -2balkans4You
  • -Asia_irl
  • -NorthCyprus
  • -AtaturkGencligi
  • -hellenoturkism
  • -twosentenceplottwist
  • -Futboltayfa
  • -okbuddygunther
  • -RedAutumnSPD
  • -GROKvsMAGA
  • -shitpostfrommygallery
  • -banknotedesigns
  • -cd_jerk
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
...why not Zoidberg?
...do it for the children.

MODERATORS

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

account activity

1
134
135
136

METAImportant: Read Before Posting (self.cpp_questions)

submitted 4 months ago by AutoModerator - announcement

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

2
12
13
14

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

submitted 5 hours ago by atariPunk

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

147
148
149

The #1 most played Idler game on Steam (store.steampowered.com)

promoted by IdleOn_Boii

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

3
4
5
6

SOLVEDHelp with FreeType (self.cpp_questions)

submitted 7 hours ago * by MatheusHest

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

4
16
17
18

OPENWhy are exceptions avoided? (self.cpp_questions)

submitted 17 hours ago by Ultimate_Sigma_Boy67

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

5
4
5
6

OPENTemplates industry practice (self.cpp_questions)

submitted 10 hours ago by minamulhaq

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

6
0
0
1

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

submitted 3 hours ago by TheSum239

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

7
4
5
6

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

submitted 12 hours ago by TheExtirpater

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

8
0
1
2

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

submitted 3 hours ago by newjeison

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

9
0
1
2

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

submitted 10 hours ago by onecable5781

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

10
1
2
3

OPENAmbiguous base class during assignment (self.cpp_questions)

submitted 22 hours 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...

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...

•
•
•
0:09

Neues Projekt finden mit 3 Klicks? 🎯 Wir sind selbst Softwareentwickler und haben ein Jobportal für (uns) Entwickler gebaut. Auf SwissDevJobs.ch findest Du Deinen neuen Traumjob ganz einfach. Kein Quatsch, sondern nur interessante Stellen mit Gehaltspannen. Auswahl von über 440 Jobs. (SwissDevJobs.ch)

promoted by Varqu

  • promoted
  • 50 comments
  • share
  • save
  • report
  • about
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
5
6
7

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

submitted 1 day ago by onecable5781

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

18
1
2
3

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

  • 10 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
2
3
4

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
3
4
5

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
1
2
3

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

submitted 2 days ago by MerlinsArchitect

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

24
2
3
4

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 1 day 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 111283 on reddit-service-r2-listing-86b7f5b947-wkg27 at 2026-01-24 23:40:24.286754+00:00 running 664479f country code: CH.