#include <iostream>
#include <string>
using namespace std;

struct Bitmap {
    string src;
    Bitmap(string s) : src(move(s)) {}
};

struct RightBitmap {
    string src;
    RightBitmap(string &s) : src(move(s)) {}
};


int main() {
    string stst = "moved?";
    struct Bitmap bmp(stst);
    
    std::cout << "source> "<< stst << endl << "dest> " << bmp.src << std::endl;

    struct RightBitmap bmp2(stst);
    std::cout << "source2> "<< stst << endl << "dest2> " << bmp2.src << std::endl;
 
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: