Thrift-1859: Generated error c++ code with -out and include_prefix param
Client: cpp
Patch: Jingxu Chen
Updates output directory to no longer include gen-cpp folder when using -out.
diff --git a/compiler/cpp/src/parse/t_program.h b/compiler/cpp/src/parse/t_program.h
index 60a47d0..12fcf0e 100644
--- a/compiler/cpp/src/parse/t_program.h
+++ b/compiler/cpp/src/parse/t_program.h
@@ -80,7 +80,7 @@
const std::string& get_out_path() const { return out_path_; }
// Create gen-* dir accessor
- bool is_out_path_absolute() { return out_path_is_absolute_; }
+ const bool is_out_path_absolute() const { return out_path_is_absolute_; }
// Name accessor
const std::string& get_name() const { return name_; }