Bitset header

kurtwerbrouck
Posts: 10
Joined: Tue Feb 16, 2021 2:37 pm

Bitset header

Postby kurtwerbrouck » Sat Mar 25, 2023 5:22 pm

Hello

I want to shift 80 bits into a esp32 - i saw some examples that are using the #include <bitset>.

#include <stdio.h>
#include <iostream>
#include <bitset>

void app_main(void)
{
std::bitset<80> b("01000000000000000000000000000000");
b >>= 12;
}

For some reason the #include <bitset> is reported as not present (when using F12 - go to definitions - is open the file)

Any solutions?

Thanks

mikl604
Posts: 16
Joined: Thu Aug 24, 2023 3:15 pm

Re: Bitset header

Postby mikl604 » Fri Sep 22, 2023 2:20 pm

I'll bring up the topic, it's also interesting. I didn't find any answers.

vinci1989
Posts: 27
Joined: Mon Oct 08, 2018 6:07 pm

Re: Bitset header

Postby vinci1989 » Fri Sep 22, 2023 6:11 pm

I have no problems including <bitset> with

Code: Select all

v5.2-dev

mikl604
Posts: 16
Joined: Thu Aug 24, 2023 3:15 pm

Re: Bitset header

Postby mikl604 » Sat Sep 23, 2023 10:58 am

I am using the latest official 5.1.1.

Who is online

Users browsing this forum: ESP_Sprite, Majestic-12 [Bot] and 70 guests