Comments (6)
Perhaps we need to wrap all our #define statements in #ifndef?
+1
from gz-utils.
I was wondering why the warning didn't show up on Linux. It turns out the warning is emitted if the definitions are different. On Linux they are the same, but on windows, ign-cmake has
#define DETAIL_IGN_UTILS_WARN_IGNORE__NON_VIRTUAL_DESTRUCTOR \
DETAIL_IGN_UTILS_BEGIN_WARNING_SUPPRESSION(4265) \
DETAIL_IGN_UTILS_BEGIN_WARNING_SUPPRESSION(5205)
while ign-utils has
#define DETAIL_IGN_UTILS_WARN_IGNORE__NON_VIRTUAL_DESTRUCTOR \
DETAIL_IGN_UTILS_BEGIN_WARNING_SUPPRESSION(4265)
I can add the #ifndef
, but I'm not sure how we deal with different versions of the macro in two places going forward. It seems like it would lead to confusion. Changing the macro names might be better.
from gz-utils.
while ign-utils has
In this case, I think 5205 could be added to ign-utils
's macros.
Changing the macro names might be better.
+1
from gz-utils.
Addressed in #10
from gz-utils.
In this case, I think 5205 could be added to
ign-utils
's macros.
I think it would make sense to do this as well
from gz-utils.
In this case, I think 5205 could be added to
ign-utils
's macros.I think it would make sense to do this as well
from gz-utils.
Related Issues (8)
- cli: add custom formatter for help strings
- Migrate environment variable functions to utils
- ignition utils 1.2.0 doesn't build with ign-cmake 2.10.0 and with clang-6.0 compiler HOT 7
- fatal error: gz/utils/Export.hh: No such file or directory HOT 1
- IgnitionFormatter.hpp renamed to GzFormatter.hpp HOT 1
- Require DCO HOT 1
- Feature request: add macros for arm64 and armhf in ExtraTestMacros.hh
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gz-utils.