profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/eldiener/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

boostorg/preprocessor 59

Boost.org preprocessor module

boostorg/parameter 9

Boost.org parameter module

boostorg/vmd 5

Boost.org VMD module

boostorg/function_types 3

Boost.org function_types module

boostorg/tti 2

Boost.org tti module

eldiener/cxx_dual 2

Choose std or Boost library

eldiener/accumulators 1

An awesome library from Boost

boostorg/parameter_python 0

Boost.Parameter Python bindings

eldiener/asio 0

Boost.org asio module

issue commentboostorg/preprocessor

MSVC: BOOST_PP_STRINGIZE __LINE__

I can not follow what you are trying to show me. You need to produce a simple code example which shows a problem with BOOST_PP_STRINGIZE(__LINE__). That means not some image which it is impossible for me to follow.

ohhmm

comment created time in a month

issue commentboostorg/preprocessor

MSVC: BOOST_PP_STRINGIZE __LINE__

I am assuming the problem is in your code and not in this library. Can I close this issue ?

ohhmm

comment created time in a month

issue commentboostorg/preprocessor

MSVC: BOOST_PP_STRINGIZE __LINE__

I can not read your image. Please copy as code if you want me to read it.

ohhmm

comment created time in a month

issue commentboostorg/preprocessor

MSVC: BOOST_PP_STRINGIZE __LINE__

I changed the program I used to test, called test_stringize.cpp, to:

# include <iostream>
# include <boost/preprocessor/stringize.hpp>

int main() 
    {
    std::cout << '\n' << __FILE__ ":" BOOST_PP_STRINGIZE(__LINE__) " " << '\n';
    return 0;
    }

and in all cases the correct result of test_stringize.cpp:6 was printed. This same correct result occured with msvc-14.2 msvc-14.2 preview and msvc-14.3 preview, whether I was using the default preprocessor or the new preprocessor. Would you please try the above program yourself ?

ohhmm

comment created time in a month

issue commentbfgroup/b2

Knowing when a test has been successful or not

I might want to do execute particular bjam code if a test succeeds, but execute different bjam code if a test fails. By test I mean any one of the particular types of tests supported by bjam, ie. a run, compile, compile-fail, link, link-fail etc.

eldiener

comment created time in a month

issue commentbfgroup/b2

Knowing when a test has been successful or not

Since bjam deals with arrays of strings it could return a result for each test, even if a single run test.cpp executed multiple tests.

eldiener

comment created time in a month

issue commentbfgroup/b2

Knowing when a test has been successful or not

The directory in which such a file is created is dependent on a bunch of test parameters. It would be much better if bjam had some functionality which would find where this file is supposedly created, tested whether the file existsed or not, and then returned a value specifying whether the test succeeded or not.

eldiener

comment created time in a month

issue commentboostorg/preprocessor

MSVC: BOOST_PP_STRINGIZE __LINE__

I was able to setup VS2022 Preview and tried my code above with both the default preprocessor and the new preprocessor and the result was correctly "6" and not "__LINE__".

ohhmm

comment created time in a month

issue commentboostorg/preprocessor

MSVC: BOOST_PP_STRINGIZE __LINE__

Then it must be something with the new preview since it was also OK with the 2019 preview. If my simple example failed with 2022 preview and succeeds with VS2019, then you might want to report it as a bug to Microsoft. You can lift the code from the stringize.hpp header file in your report and massage it if you like, but it is really very simple. BOOST_PP_CONFIG_MSVC() in stringize.hpp is turned on for VC++ using the default preprocessor but is not set when the new preprocessor is being used.

ohhmm

comment created time in a month

issue commentboostorg/preprocessor

MSVC: BOOST_PP_STRINGIZE __LINE__

Did you try my simple example above and see if the result matches mine ?

ohhmm

comment created time in a month

issue commentboostorg/preprocessor

MSVC: BOOST_PP_STRINGIZE __LINE__

Can you try Visual Studio 2019 or Visual Studio 2019 Preview and see if you get the same results as with Visual Studio 2022 Preview ? I tried Visual Studio 2019 or Visual Studio 2019 Preview and I got the correct result. I really, really doubt that this is a Boost PP problem. Nothing in the BOOST_PP_STRINGIZE code has changed that would suggest a bug in Boost PP. If you can give me a command line with the compiler options you use it would be appreciated. I have downloaded Visual Studio 2022 Preview and will try it. once I get it setup to use with Boost on my local machine.

ohhmm

comment created time in a month

issue commentboostorg/preprocessor

MSVC: BOOST_PP_STRINGIZE __LINE__

I am not seeing this in VS2019 with the latest Boost. What version of MSVC are you using and what version of Boost are you using ? My test program is:

# include <iostream>
# include <boost/preprocessor/stringize.hpp>

int main() 
	{
	std::cout << '\n' << BOOST_PP_STRINGIZE(__LINE__) << '\n';
        return 0;
        }

and the output is 6 and not "LINE".

ohhmm

comment created time in a month

pull request commentboostorg/type_traits

[skip ci] Fixed operator traits example code for last issue.

This is a simple doc fix that has been there since this last April. Any reason that this can not be merged ?

eldiener

comment created time in 2 months

push eventboostorg/preprocessor

Edward Diener

commit sha 93b896c932635f87ac9a2f2f46030095f994c1fe

Corrected cmake tests

view details

Edward Diener

commit sha d4e82d7d3f2e2adbe280966ac51ce8f9372f5a44

Merge branch 'develop'

view details

push time in 3 months