This commit is contained in:
2026-03-17 18:13:23 +03:00
parent 8ccc05ee78
commit ac877f1024
3 changed files with 48 additions and 28 deletions

View File

@@ -20,6 +20,27 @@ inline PIByteArray SMBusTypeInfo_genHash(PIString n) {
int main(int argc, char * argv[]) {
PIProtectedVariable<double> pv(3.0);
piCout << pv.get();
{
auto ref = pv.getRef();
piCout << *ref;
*ref = 11.;
piCout << *ref;
}
piCout << pv.get();
{
auto ref = pv.getRef();
piCout << *ref;
*ref = 12.;
piCout << *ref;
auto ref2 = std::move(ref);
piCout << *ref2;
}
piCout << pv.get();
return 0;
PICrypt _crypt;
// auto ba = PIFile::readAll("logo.png");
PIString str = "hello!"_a;