darrenlafreniere / lafarren-image-completer

Implementation of the research titled: "Image Completion Using Efficient Belief Propagation via Priority Scheduling and Dynamic Pruning"
http://www.lafarren.com/image-completer/
GNU General Public License v3.0
32 stars 18 forks source link

error: cannot pass objects of non-trivially-copyable type #70

Open daviddoria opened 13 years ago

daviddoria commented 13 years ago

image-completer-cmd/CommandLineOptions.cpp:210:125: error: cannot pass objects of non-trivially-copyable type ‘class wxCStrData’ through ‘...’

That is this line: const std::string& descriptionForUsageText = LfnTech::Str::Format("\n%s%s\n", Option::Indent(), option.description.c_str());

daviddoria commented 13 years ago

Fixed with explicit cast to const char*. Pending pull request merge.