eolian-cxx: Fixed a bug in class validator.

This commit is contained in:
Savio Sena 2014-07-17 00:38:13 -03:00 committed by Felipe Magno de Almeida
parent 78e396ac19
commit 027fa407bd
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ namespace efl { namespace eolian {
inline bool
_is_valid(std::string const& value)
{
return !value.empty() and isalpha(value[0]);
return !value.empty() and (isalpha(value[0]) || value[0] == '_');
}
inline bool