diff --git a/identity_type/doc/identity_type.qbk b/identity_type/doc/identity_type.qbk index d5107a3..2723d33 100644 --- a/identity_type/doc/identity_type.qbk +++ b/identity_type/doc/identity_type.qbk @@ -21,16 +21,16 @@ This library allows to wrap type expressions within round parenthesis so they can be passed to macros even when they contain commas. -[import ../test/var_err.cpp] +[import ../test/var_error.cpp] [import ../test/var.cpp] [import ../test/template.cpp] [import ../test/tmp_assert.cpp] [section Motivation] -Consider the following macro which declares a variable named `var`/n/ with the specified /type/ (see also [@../../test/var_err.cpp =var_err.cpp=]): +Consider the following macro which declares a variable named `var`/n/ with the specified /type/ (see also [@../../test/var_error.cpp =var_error.cpp=]): -[var_err] +[var_error] The first macro invocation works correctly declaring a variable named `var1` of type `int`. However, the second macro invocation fails generating a preprocessor error similar to the following: diff --git a/identity_type/test/Jamfile.v2 b/identity_type/test/Jamfile.v2 index 2f0bdac..482c0c0 100644 --- a/identity_type/test/Jamfile.v2 +++ b/identity_type/test/Jamfile.v2 @@ -7,7 +7,7 @@ import testing ; -compile-fail var_err.cpp ; +compile-fail var_error.cpp ; run var.cpp ; run template.cpp ; run tmp_assert.cpp ; diff --git a/identity_type/test/var_err.cpp b/identity_type/test/var_error.cpp similarity index 97% rename from identity_type/test/var_err.cpp rename to identity_type/test/var_error.cpp index 7ba0c52..b69817d 100644 --- a/identity_type/test/var_err.cpp +++ b/identity_type/test/var_error.cpp @@ -7,7 +7,7 @@ #include -//[var_err +//[var_error #define VAR(type, n) type var ## n VAR( int, 1 ); // OK.