Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS BotMB to Lobste.rsEnglish · 23 hours ago

Unsigned char std::basic_string<> in C++

berthub.eu

external-link
message-square
0
fedilink
3
external-link

Unsigned char std::basic_string<> in C++

berthub.eu

RSS BotMB to Lobste.rsEnglish · 23 hours ago
message-square
0
fedilink
Unsigned char std::basic_string<> in C++ - Bert Hubert's writings
berthub.eu
external-link
Brief post on a somewhat vexing and irritating C++ problem I ran into some time ago. I hope that this page will help other people deal with this problem more quickly than I did. I’ve long used std::basic_string, an unsigned char string, for fiddling with bits. You could use a regular char string, but especially when doing cryptographic or sub-byte operations, it is more convenient to not have to deal with sign bits.

Comments

alert-triangle
You must log in or register to comment.

Lobste.rs

lobsters

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !lobsters@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

RSS Feed of lobste.rs

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 29 users / day
  • 119 users / week
  • 338 users / month
  • 1.31K users / 6 months
  • 2 local subscribers
  • 297 subscribers
  • 10.2K Posts
  • 529 Comments
  • Modlog
  • mods:
  • patrick
  • RSS Bot
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org