class str {
public:
str(const std::string &rhs) {
strncpy(sso, rhs.c_str(), 50);
}
str &operator=(const std::string &rhs) {
pmemobj_tx_add_range_direct(sso, 50);
strncpy(sso, rhs.c_str(), 50);
return *this;
}
private:
char sso[50];
};
--
You received this message because you are subscribed to the Google Groups "pmem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pmem+uns...@googlegroups.com.
To post to this group, send email to pm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pmem/10a7ab2c-4224-400f-9197-3859e15d5321%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.