Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing #define with strongly typed enum #38

Merged
merged 2 commits into from
May 24, 2018

Conversation

kunaltyagi
Copy link
Contributor

@kunaltyagi kunaltyagi commented Feb 13, 2018

Fixes #31 and #30 (somewhat) in the sense that an external #define DEFAULT would still cause an issue (pre-processor is dumb) , nothing we can do about it.

But we use enumerator now, better than static const int for type safety.

This would break a lot of people's setup so we should ideally communicate this to them somehow.

Additional test failure reported with Eigen matrix library (#2)

matrixwrapper_test.cpp:119:Assertion
Test: MatrixwrapperTest::testMatrixWrapperValue
- Expected: 0
- Actual: 7

Breaks a lot of personal code styling guides 😄

PS: Open for better name as compared to Sampling. SamplingMethod is just a bit too long, SmpMthd is too cryptic...

@toeklk
Copy link
Collaborator

toeklk commented Feb 19, 2018

Make sense too me. Indeed this breaks backwards compatibility, but this seems to be minor, and BFL hasn't reached version 1.x ;-)
Naming: What about "SampleMthd" ?

@toeklk
Copy link
Collaborator

toeklk commented May 18, 2018

Hi Kunal, see above, what do you think about SampleMthd as compromise name?

@kunaltyagi
Copy link
Contributor Author

Sure. That works. I don't know why the notification didn't appear. I'll update it soon when I get to my workstation.

* master:
  scythe no longer developed nor maintained upstream
  LTIlib no longer developed nor maintained upstream, part 2
  LTIlib no longer developed nor maintained upstream
  fix issue orocos#45 - Using GNUInstallDirs. Thx Josch
  fix issue orocos#42 (test fails on i386 architecture). Patch provided by josch
  small attempt to make README.md a little more accurate
  fix issue orocos#4 : error in the tests
  fix typo in header guard
  fix doxygen typo: discreteConditionalPdf is not an abstract class
  Removed executable file permissions from pdf/mixture.{cpp,h}
@toeklk toeklk merged commit fc06a3d into orocos:master May 24, 2018
@toeklk
Copy link
Collaborator

toeklk commented May 24, 2018

Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants