Revert "Replaced char[] with char[<sizeof>] to please MSVC 2015"

This reverts commit 30a3a6b2ff.
This commit is contained in:
rbock
2015-06-01 22:12:32 +02:00
parent 890d75d377
commit b062f2ade7
3 changed files with 12 additions and 12 deletions

View File

@@ -146,7 +146,7 @@ for tableCreation in tableCreations:
print(' {', file=header)
print(' struct _alias_t', file=header)
print(' {', file=header)
print(' static constexpr const char _literal[' + str(len(sqlColumnName) + 1) + '] = "' + sqlColumnName + '";', file=header)
print(' static constexpr const char _literal[] = "' + sqlColumnName + '";', file=header)
print(' using _name_t = sqlpp::make_char_sequence<sizeof(_literal), _literal>;', file=header)
print(' template<typename T>', file=header)
print(' struct _member_t', file=header)
@@ -178,7 +178,7 @@ for tableCreation in tableCreations:
print(' {', file=header)
print(' struct _alias_t', file=header)
print(' {', file=header)
print(' static constexpr const char _literal[' + str(len(sqlTableName) + 1) + '] = "' + sqlTableName + '";', file=header)
print(' static constexpr const char _literal[] = "' + sqlTableName + '";', file=header)
print(' using _name_t = sqlpp::make_char_sequence<sizeof(_literal), _literal>;', file=header)
print(' template<typename T>', file=header)
print(' struct _member_t', file=header)