jamesjuett / lobster

Interactive Program Visualization Tools
8 stars 3 forks source link

operator+ return value for strings shown in red #282

Open jamesjuett opened 2 years ago

jamesjuett commented 2 years ago

Appears that this works correctly

#include <iostream>
#include <string>

using namespace std;

int main() {
  string s;
  string t = operator+(s , "es");
}

Except that the returned value is shown in red. May be an issue with object lifetimes.