• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rttrorg / rttr
92%
master: 92%

Build:
Build:
LAST BUILD BRANCH: vcpkg-instructions
DEFAULT BRANCH: master
Repo Added 07 Jan 2016 05:29PM UTC
Files 171
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix_not_allowed_ctor_registration
branch: fix_not_allowed_ctor_registration
CHANGE BRANCH
x
Reset
  • fix_not_allowed_ctor_registration
  • add-coveralls-ci
  • add-thread-safe-registry
  • add_auto_conversion_from_wrapper
  • add_base_classes_implicit_during_registration
  • add_constexpr
  • add_docu_server_build
  • add_flag_to_filter_item_ranges
  • add_mit_license
  • add_more_enumeration_tests
  • add_no_except
  • add_noexcept
  • add_range_based_views
  • add_reference_wrapper_policy
  • add_string_view
  • add_variant_associative_view
  • add_vs_2017_ci_support
  • adjust_type_registry
  • adjust_variant_class
  • bugfix-missing-docu-build
  • bugfix-raw-ptr-properties
  • coverity_scan
  • feature-add-nested-type
  • feature-add-variant-wrapper-conversion
  • feature-simplify-associative-mapping
  • fix_ci_systems
  • fix_clang_build
  • fix_clang_x86_build
  • fix_not_retrieved_dtor
  • fix_variant_compare
  • function_traits_cleanup
  • increase_test_coverage
  • master
  • remove_array_range_specialization
  • retrieve_derived_type
  • rmv_if_branch_from_wrapper
  • v0.9.6

pending completion
226

push

travis-ci

acki-m
ATTENTION!: Replaced default constructor binding from "as_object" to "as_std_shared_ptr".

This might break some code silently!
Without this change it is not possible to register a constructor
from a class which has a deleted or private copy constructor.

This change will allow now the registration of these kind of classes.

shared_ptr is a valid choice because it has automatic memory management.
Its better here to be explicit and have one rule, instead of doing some hidden magic for this case.

To have the old binding behaviour back, add the policy: 'policy::ctor::as_object'
to every constructor
registration::class_<MyStruct>("MyStruct")
    .constructor<>()
    (
        policy::ctor::as_object
    );

Remark:
When you want to real type of the created instance in the variant, use 'type::get_wrapped_type()'

This will fix issue #14

4203 of 4570 relevant lines covered (91.97%)

2104.97 hits per line

Relevant lines Covered
Build:
Build:
4570 RELEVANT LINES 4203 COVERED LINES
2104.97 HITS PER LINE
Source Files on fix_not_allowed_ctor_registration
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
226 fix_not_allowed_ctor_registration ATTENTION!: Replaced default constructor binding from "as_object" to "as_std_shared_ptr". This might break some code silently! Without this change it is not possible to register a constructor from a class which has a deleted or private copy const... push 01 May 2016 11:18AM UTC acki-m travis-ci pending completion  
225 fix_not_allowed_ctor_registration ATTENTION!: Replaced default constructor binding from "as_object" to "as_std_shared_ptr". This might break some code silently! Without this change it is not possible to register a constructor from a class which has a deleted or private copy const... push 01 May 2016 10:15AM UTC acki-m travis-ci pending completion  
222 fix_not_allowed_ctor_registration ATTENTION!: Replaced default constructor binding from "as_object" to "as_std_shared_ptr". This might break some code silently! Without this change it is not possible to register a constructor from a class which has a deleted or private copy const... push 30 Apr 2016 02:26PM UTC acki-m travis-ci pending completion  
See All Builds (605)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc