jhns has quit [Read error: Connection reset by peer]
jhns_ is now known as jhns
brunoerg has joined #bitcoin-core-dev
sipsorcery_ has quit [Ping timeout: 252 seconds]
instagibbs1 has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 260 seconds]
instagibbs has quit [Ping timeout: 268 seconds]
instagibbs1 is now known as instagibbs
cryptapus has quit [Read error: Connection reset by peer]
PaperSword has joined #bitcoin-core-dev
<PaperSword>
If a data type just consists of 2 string should one use pair or create a new typedef?
Guest6 has joined #bitcoin-core-dev
Guest6 has quit [Quit: Client closed]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 264 seconds]
<PaperSword>
If a data type just consists of 2 strings should one use pair or create a new typedef struct or class?
<_aj_>
a struct makes it easier to not get confused about which string is which
<_aj_>
no general rule though, i think?
<_aj_>
(if it's c++ (pair) you don't need a typedef if you create a struct/class?)
<PaperSword>
Yeah that is correct the biggest difference that i can see is that a pair is less readable because of the fact each member is accessed by .first and .second
<PaperSword>
A struct on the other hand you must declare it, but allows for access to memebers via a name.
<PaperSword>
In my cast I am creating maps of bech32 HRPs to the network string name.
<_aj_>
use structured binding instead of .first and .second? auto [a,b] = pair; ?
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 256 seconds]
cryptapus has joined #bitcoin-core-dev
ghost43 has quit [Quit: Leaving]
ghost43 has joined #bitcoin-core-dev
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
<PaperSword>
@_aj_ the structured binding feature looks like a very elegant solution. C++17 and newer only.
jarthur has quit [Ping timeout: 248 seconds]
jarthur has joined #bitcoin-core-dev
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 268 seconds]
onetwo has quit [Read error: Connection reset by peer]
onetwo has joined #bitcoin-core-dev
<sipa>
use `auto& [a, b] = pair;` to avoid copies if they're non-trivial element types (e.g. strings you should not copy)
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 255 seconds]
robszarka has joined #bitcoin-core-dev
rszarka has quit [Ping timeout: 248 seconds]
<PaperSword>
Thanks @sipa! Yeah these structured bindings are a very cool feature I had not explored.
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 246 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 260 seconds]
jon_atack has joined #bitcoin-core-dev
jonatack has quit [Ping timeout: 248 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 256 seconds]
brunoerg has joined #bitcoin-core-dev
realies has quit [Quit: ~]
realies has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 268 seconds]
realies has quit [Ping timeout: 248 seconds]
cmirror has quit [Remote host closed the connection]
cmirror has joined #bitcoin-core-dev
puchka has quit [Ping timeout: 248 seconds]
puchka has joined #bitcoin-core-dev
realies has joined #bitcoin-core-dev
brunoerg has joined #bitcoin-core-dev
realies has quit [Quit: ~]
brunoerg has quit [Ping timeout: 264 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
dougefish_ has quit [Ping timeout: 248 seconds]
dougefish has joined #bitcoin-core-dev
brunoerg has joined #bitcoin-core-dev
puchka has quit [Ping timeout: 268 seconds]
brunoerg has quit [Ping timeout: 248 seconds]
puchka has joined #bitcoin-core-dev
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 252 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 256 seconds]
brunoerg has joined #bitcoin-core-dev
TheRec_ has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 252 seconds]
jarthur has quit [*.net *.split]
dviola has quit [*.net *.split]
b_101 has quit [*.net *.split]
TheRec has quit [*.net *.split]
outfox has quit [*.net *.split]
Ara has quit [*.net *.split]
codo has quit [*.net *.split]
baakeydow has quit [*.net *.split]
sturles has quit [*.net *.split]
cornfeedhobo has quit [*.net *.split]
roasbeef has quit [*.net *.split]
warren has quit [*.net *.split]
Lightsword has quit [*.net *.split]
ajonas has quit [*.net *.split]
ariard has quit [*.net *.split]
furszy has quit [*.net *.split]
yancy has quit [*.net *.split]
jeremyrubin has quit [*.net *.split]
jarthur has joined #bitcoin-core-dev
dviola has joined #bitcoin-core-dev
b_101 has joined #bitcoin-core-dev
outfox has joined #bitcoin-core-dev
Ara has joined #bitcoin-core-dev
codo has joined #bitcoin-core-dev
baakeydow has joined #bitcoin-core-dev
sturles has joined #bitcoin-core-dev
roasbeef has joined #bitcoin-core-dev
warren has joined #bitcoin-core-dev
cornfeedhobo has joined #bitcoin-core-dev
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 252 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 246 seconds]
brunoerg has joined #bitcoin-core-dev
jarthur has quit [Ping timeout: 248 seconds]
brunoerg has quit [Ping timeout: 264 seconds]
jarthur has joined #bitcoin-core-dev
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
brunoerg has joined #bitcoin-core-dev
dviola has quit [Ping timeout: 248 seconds]
brunoerg has quit [Ping timeout: 265 seconds]
dviola has joined #bitcoin-core-dev
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 255 seconds]
goatpig_ has joined #bitcoin-core-dev
brunoerg has joined #bitcoin-core-dev
martins has joined #bitcoin-core-dev
jeremyrubin has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
Guyver2 has joined #bitcoin-core-dev
b_101_ has joined #bitcoin-core-dev
b_101 has quit [Ping timeout: 248 seconds]
brunoerg has joined #bitcoin-core-dev
dviola has left #bitcoin-core-dev [#bitcoin-core-dev]
dviola has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
martins has quit [Read error: Connection reset by peer]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 260 seconds]
p2plife_ has quit [Quit: quit]
p2plife has joined #bitcoin-core-dev
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
brunoerg has joined #bitcoin-core-dev
Guyver2 has left #bitcoin-core-dev [Closing Window]
brunoerg has quit [Ping timeout: 260 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 265 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 264 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 265 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 265 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 260 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 264 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 246 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 260 seconds]
jespada has quit [Remote host closed the connection]
jespada has joined #bitcoin-core-dev
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
Guest4 has joined #bitcoin-core-dev
Guest4 has quit [Quit: Ping timeout (120 seconds)]
brunoerg has quit [Remote host closed the connection]
brunoerg has joined #bitcoin-core-dev
___nick___ has joined #bitcoin-core-dev
___nick___ has quit [Client Quit]
brunoerg has quit [Ping timeout: 248 seconds]
zeropoint has joined #bitcoin-core-dev
___nick___ has joined #bitcoin-core-dev
zeropoint has quit [Quit: leaving]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 264 seconds]
<bitcoin-git>
[bitcoin] hernanmarino opened pull request #27197: Fixed typos in comments to make linter happy (master...fix-typos-linter) https://github.com/bitcoin/bitcoin/pull/27197
brunoerg has joined #bitcoin-core-dev
Talkless has quit [Quit: Konversation terminated!]
brunoerg has quit [Ping timeout: 260 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 260 seconds]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
neromm[m] has joined #bitcoin-core-dev
jon_atack has quit [Ping timeout: 246 seconds]
bugs_ has quit [Quit: Leaving]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Ping timeout: 248 seconds]
brunoerg has joined #bitcoin-core-dev
ghost43 has quit [Remote host closed the connection]