| 1 | boost::string_ref something;
|
|---|
| 2 | something = "temp"; // works ok
|
|---|
| 3 | something = std::string("temp"); //doesn't work corretly
|
|---|
| 4 |
|
|---|
| 5 | while it should not be a should only be:
|
|---|
| 6 | boost::string_ref something;
|
|---|
| 7 | something = "temp"; // works ok
|
|---|
| 8 | std::string tempStr("temp");
|
|---|
| 9 | something = tempStr; // works ok
|
|---|