Skip to content

Commit dedf276

Browse files
committed
Fixing call to get_part_kind in MIME.
1 parent e173b8a commit dedf276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boost/mime.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ class basic_mime {
658658
void check_subpart_index ( size_t idx ) const {
659659
if ( get_part_kind () == simple_part )
660660
throw std::runtime_error ( "Simple Mime parts don't have sub-parts" );
661-
else if ( get_part_kind == multi_part ) {
661+
else if ( get_part_kind () == multi_part ) {
662662
if ( idx >= m_subparts.size ())
663663
throw std::runtime_error (
664664
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

Comments
 (0)