RSSAmplifier

pboyd.io · May 11, 2024

How to avoid one C++ foot gun

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

I don&rsquo;t think C++ is nearly as bad as some people would make you believe, but it has no shortage of ways to shoot yourself in the foot. I recently wrote some code in the pattern of the following snippet: class CheeseShop { public : CheeseShop(){} CheeseShop(std :: string configPath) { auto cfg = toml :: parse(configPath); auto cheeses = toml :: find < std :: vector < std :: string >> (cfg,…

Read on pboyd.io

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.