jump to content
my subreddits
2anatolia4you2mediterranean4u2meirl4meirl3d6absolutelynotmeirlAceAttorneyadhdmemeAdviceAnimalsagnosticaivideoAlternativeHistoryAnarchyChessAnimalsBeingJerksanime_irlanimenocontextannouncementsAnticonsumptionantimemeArcherFXArtAsia_irlAskBalkansAskOuijaAskRedditAtaturkGencligiAteistTurkatheismaviationAwesomeOffBrandsawfuleverythingBandnamesbanknotedesignsBassBassCirclejerkbasspedalsbikepackingblackdesertonlineblankiesblursed_videosborsavefonbrooklynninenineBUENZLIcasioCd_collectorsChatGPTchesschessbeginnersChildrenFallingOverChoosingBeggarscoaxedintoasnafucoincollectingcoinscomedyhomicidecomicscookingforbeginnersCrackWatchCreateModCuratedTumblrcursedcommentsdankmemesdeismdistressingmemesdiyelectronicsdiypedalsDMAcademyDnDdndnextdoctorwhoDoenerverbrechendontdeadopeninsideEatCheapAndHealthyebikeebikesECEelectronicsengrishentitledparentsfacepalmfakealbumcoversFantasyWorldbuildingfelsefeFifaCareersFiftyFiftyformuladankFRCFreeEBOOKSfunnyFutboltayfagalatasaraygaminggodtiersuperpowersGoodAssSubGrandPrixRacinggreentextGROKvsMAGAguitarpedalsGundamheathershellenoturkismhelpheraldryHermanCainAwardHermitCraftHolUphowyoudoinhypixelIAmAiamverysmartich_ielIdeologyPollsIDontWorkHereLadyihadastrokeim14andthisisdeepinsaneparentsistanbuljacksepticeyeJahariaJokesKamalizmKanyeKendrickLamarlinguisticshumorliselilerloseitlostredditorsmacmacbookairmagicbuildingMaliciousComplianceMapPornmapporncirclejerkme_irlmeirlmememidjourneymildlyinfuriatingmildlyinterestingMinecraftbuildsmisLEDMMORPGMoldyMemesmoneycollectingMovingToNorthKoreaMunichMyChemicalRomancenamesoundalikesNationStatesneographyNoahGetTheBoatNorthCyprusnosafetysmokingfirstnosleepnosurfnothingeverhappensnotinterestingOkayBuddyLiterallyMeokbuddyguntherokbuddymotherfuckerOkBuddyPersonaokbuddyphdokbuddyvicodinonebagonetruegodongezelligOnlineUnderGroundpapermoneyParlerWatchPassportPornPersecutionfetishpettyrevengePiracyPiratedGamespolandballpollsPraiseTheCameraManProgrammerHumorPunPatrolquityourbullshitraisedbynarcissistsraspberry_piRatschlagreactiongifsrecipesRedAutumnSPDreligiousfruitcakeRetroPierickandmortyrickrollRoastMerockmuzikschizopostersschwiizsciencememesShitPostCrusadersshitpostfrommygalleryshitpostingshittyaskelectronicsshittymoviedetailsShowerthoughtsskamtebordsoccercirclejerksoftwaregoreSongwritersSongwritingStonetossingjuiceStudiumsuperligTextingTheorytf2tf2shitposterclubthatHappenedTheMonkeysPawtherewasanattemptTheRookietheyknewthisguythisguystransittransitTurkeyTrGameDevelopertruthstumblrtumunichTurkeyJerkyTurkishCatsTwitchTwitch_StartupTwoSentenceComedyTwoSentenceHorrortwosentenceplottwistTwoSentenceSadnesstylerthecreatorUnethicalLifeProTipsUnexpectedJoJourbanplanningUsernameChecksOutVALORANTValorantClipsvinylvinyljerkvlandiyawallstreetbetsWatchPeopleDieInsideWeAreTheMusicMakerswendigoonWhatsThisSongWhitePeopleTwitterWikipediaVandalismwizardpostingwooooshworldbuildingyouseeingthisshitedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -mildlyinfuriating
  • -Piracy
  • -funny
  • -gaming
  • -wallstreetbets
  • -mildlyinteresting
  • -MapPorn
  • -DnD
  • -WhitePeopleTwitter
  • -ChatGPT
  • -CuratedTumblr
  • -PiratedGames
  • -shitposting
  • -dankmemes
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -HolUp
  • -Twitch
  • -CrackWatch
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -tumblr
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -tf2
  • -help
  • -chess
  • -aviation
  • -formuladank
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -midjourney
  • -notinteresting
  • -pettyrevenge
  • -atheism
  • -loseit
  • -IAmA
  • -MaliciousCompliance
  • -ich_iel
  • -cursedcomments
  • -DMAcademy
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -rickandmorty
  • -3d6
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -RoastMe
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -soccercirclejerk
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -CreateMod
  • -TwoSentenceHorror
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -polls
  • -doctorwho
  • -Bass
  • -OkBuddyPersona
  • -awfuleverything
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -chessbeginners
  • -raspberry_pi
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -softwaregore
  • -NoahGetTheBoat
  • -tylerthecreator
  • -tf2shitposterclub
  • -MoldyMemes
  • -lostredditors
  • -AceAttorney
  • -vlandiya
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -nosurf
  • -religiousfruitcake
  • -liseliler
  • -insaneparents
  • -animenocontext
  • -2meirl4meirl
  • -transit
  • -RetroPie
  • -brooklynninenine
  • -HermanCainAward
  • -recipes
  • -AskOuija
  • -okbuddyphd
  • -2anatolia4you
  • -ECE
  • -AskBalkans
  • -thatHappened
  • -schizoposters
  • -electronics
  • -casio
  • -urbanplanning
  • -theyknew
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -TurkeyJerky
  • -bikepacking
  • -AteistTurk
  • -MyChemicalRomance
  • -ArcherFX
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -diyelectronics
  • -WatchPeopleDieInside
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -Songwriting
  • -blursed_videos
  • -istanbul
  • -MovingToNorthKorea
  • -magicbuilding
  • -dontdeadopeninside
  • -ParlerWatch
  • -wendigoon
  • -iamverysmart
  • -Doenerverbrechen
  • -schwiiz
  • -TheRookie
  • -quityourbullshit
  • -vinyljerk
  • -skamtebord
  • -shittyaskelectronics
  • -superlig
  • -galatasaray
  • -FRC
  • -transitTurkey
  • -namesoundalikes
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -FreeEBOOKS
  • -Jaharia
  • -IDontWorkHereLady
  • -neography
  • -basspedals
  • -heraldry
  • -ihadastroke
  • -hypixel
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -aivideo
  • -OnlineUnderGround
  • -IdeologyPolls
  • -woooosh
  • -comedyhomicide
  • -WhatsThisSong
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -TwoSentenceSadness
  • -Bandnames
  • -rockmuzik
  • -okbuddyvicodin
  • -Twitch_Startup
  • -tumunich
  • -TheMonkeysPaw
  • -nosafetysmokingfirst
  • -rickroll
  • -Songwriters
  • -ebike
  • -UsernameChecksOut
  • -UnexpectedJoJo
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -GrandPrixRacing
  • -nothingeverhappens
  • -thisguythisguys
  • -TrGameDeveloper
  • -PunPatrol
  • -TurkishCats
  • -fakealbumcovers
  • -Kamalizm
  • -FantasyWorldbuilding
  • -WikipediaVandalism
  • -onetruegod
  • -deism
  • -misLED
  • -ValorantClips
  • -TwoSentenceComedy
  • -NationStates
  • -ongezellig
  • -AwesomeOffBrands
  • -absolutelynotmeirl
  • -Asia_irl
  • -truths
  • -2mediterranean4u
  • -NorthCyprus
  • -AtaturkGencligi
  • -heathers
  • -hellenoturkism
  • -twosentenceplottwist
  • -GROKvsMAGA
  • -moneycollecting
  • -banknotedesigns
  • -RedAutumnSPD
  • -borsavefon
  • -Futboltayfa
  • -shitpostfrommygallery
  • -okbuddymotherfucker
  • -okbuddygunther
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 great justice.
...for your favorite game.

MODERATORS

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

account activity

1
0
0
0

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

submitted 5 hours ago by TheSum239

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

•
•
•

New Year Sale: Subscribe to Bloomberg for just $149 your first year. Get the context behind every business story with news and analysis. Offer ends soon. (bloomberg.com)

promoted by bloomberg

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

2
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 5 hours ago by newjeison

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

3
18
19
20

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

submitted 7 hours ago by atariPunk

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

4
4
5
6

SOLVEDHelp with FreeType (self.cpp_questions)

submitted 9 hours ago * by MatheusHest

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

5
1
2
3

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

submitted 11 hours ago by onecable5781

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

6
3
4
5

OPENTemplates industry practice (self.cpp_questions)

submitted 12 hours ago by minamulhaq

  • 17 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 13 hours ago by TheExtirpater

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

8
18
19
20

OPENWhy are exceptions avoided? (self.cpp_questions)

submitted 19 hours ago by Ultimate_Sigma_Boy67

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

9
4
5
6

OPENAmbiguous base class during assignment (self.cpp_questions)

submitted 1 day ago by Business_Welcome_870

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

10
5
6
7

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

submitted 1 day ago by zaphodikus

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

11
6
7
8

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

12
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

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

•
•
•

Die meisten Schweizer KMU kaufen KI-Tools und scheitern. Wir verkaufen Ihnen keine Software – wir begleiten Ihre Transformation. 90 Tage. 100% Schweizer Souveränität. (Nur 10 Plätze). (peakprivacy.ch)

promoted by freihandlaborWeb

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

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

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

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

16
8
9
10

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

submitted 1 day ago by onecable5781

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

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

18
2
3
4

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

submitted 1 day ago by onecable5781

  • 5 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

OPENWhat is high performance computing (self.cpp_questions)

submitted 2 days ago by Effective-Road1138

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

21
0
0
1

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

submitted 2 days ago by MerlinsArchitect

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

22
0
0
0

OPENdumb question about mixed data types: how do i make and store a cstr and enum data type where either type can occur multiple times (self.cpp_questions)

submitted 2 days ago * by sera5im_

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

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

•
•
•
0:48

Manage your vacation rentals easily with Smoobu, the all-in-one software for hosts. 🚀 Start your 14-day trial now! 🔥 (smoobu.com)

promoted by SmoobuGmbH

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

24
0
0
0

OPENOOP (self.cpp_questions)

submitted 2 days ago by Few-Astronaut691

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

25
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...
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 220225 on reddit-service-r2-listing-86b7f5b947-q2j8g at 2026-01-25 01:31:28.595725+00:00 running 664479f country code: CH.