We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e173b8a commit dedf276Copy full SHA for dedf276
boost/mime.hpp
@@ -658,7 +658,7 @@ class basic_mime {
658
void check_subpart_index ( size_t idx ) const {
659
if ( get_part_kind () == simple_part )
660
throw std::runtime_error ( "Simple Mime parts don't have sub-parts" );
661
- else if ( get_part_kind == multi_part ) {
+ else if ( get_part_kind () == multi_part ) {
662
if ( idx >= m_subparts.size ())
663
throw std::runtime_error (
664
str ( boost::format ( "Trying to access part %d (of %d) sub-part to a multipart/xxx mime part" ) % idx % m_subparts.size ()));
0 commit comments