Make the schema_generator compile on MSVC
This commit is contained in:
parent
33a218a722
commit
f92722556b
1 changed files with 13 additions and 0 deletions
|
@ -289,6 +289,16 @@ public:
|
|||
/** Removes all keys with this type. Works recursively */
|
||||
void remove_keys_by_type(const std::string &type);
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// MSVC throws an error if this method is private.
|
||||
// so, define it as public to prevent that. The error is:
|
||||
// error C2248: 'schema_validation::class_tag::find_tag' : cannot
|
||||
// access private member declared in class 'schema_validation::class_tag'
|
||||
|
||||
class_tag * find_tag(const std::string & fullpath,
|
||||
class_tag & root) ;
|
||||
#endif
|
||||
|
||||
// class_tag & operator= (class_tag const& );
|
||||
|
||||
private:
|
||||
|
@ -321,8 +331,11 @@ private:
|
|||
*/
|
||||
void printl(std::ostream &os,int level, int step = 4);
|
||||
|
||||
#ifndef _MSC_VER
|
||||
// this is complementary with the above #ifdef for the MSVC error
|
||||
class_tag * find_tag(const std::string & fullpath,
|
||||
class_tag & root) ;
|
||||
#endif
|
||||
|
||||
void add_tags (const tag_map & list){
|
||||
tags_.insert(list.begin(),list.end());
|
||||
|
|
Loading…
Add table
Reference in a new issue