Giter VIP home page Giter VIP logo

gmbtest's People

Watchers

 avatar  avatar  avatar

gmbtest's Issues

The `TEST_LOG_DEBUG` macro doesn't produce valid syntax on GCC 4.8

Simpy using TEST_LOG_DEBUG("Hello, World!") produces the following compiler error...

./modules/gmbtest/gmbtest/test.hpp:76:38: error: pasting "<<" and ""Hello, World!"" does not give a valid preprocessing token
     std::cout << "LOG: " TEST_CONCAT(<<, str) \
                                      ^
./modules/gmbtest/gmbtest/test.hpp:50:32: note: in definition of macro 'TEST_CONCAT_IMPL'
 #define TEST_CONCAT_IMPL(x, y) x##y
                                ^
./modules/gmbtest/gmbtest/test.hpp:76:26: note: in expansion of macro 'TEST_CONCAT'
     std::cout << "LOG: " TEST_CONCAT(<<, str) \
                          ^
tests/test_main.cpp:22:3: note: in expansion of macro 'TEST_LOG_DEBUG'
   TEST_LOG_DEBUG("Hello, World!");
   ^

g++ --version output: g++ (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)

Compile flags:

g++ -o tests/test_main.o -c -g -Wall -O0 -std=c++1y -I./modules/gmbtest -I. tests/test_main.cpp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.